plantuml-go

command module
v0.0.0-...-6f572d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2020 License: MIT Imports: 10 Imported by: 0

README

PlantUML Go Client

This project provides a handy CLI for PlantUML users.

Motivation

  • Self-contained tool
  • Non-Java
  • Able to work with hosted PlantUML server
  • Produces "Text Format"
  • Produces Link
  • Produced Images (Wow!)
  • Useful app I wanted to improve forked from this repo

Usage

Get go package first.

go get github.com/acarlson99/goplantuml
goplantuml my-uml.puml
$ echo "@startuml
a -> b : hello world
@enduml" | goplantuml                  # reads from stdin, outputs to `uml_out.png`
$ goplantuml test.puml                 # reads from file, outputs to `test.png`
$ goplantuml -format txt test.puml     # reads from file, outputs to `test.txt`
$ cat test.txt
     ┌───┐          ┌─────┐
     │Bob│          │Alice│
     └─┬─┘          └──┬──┘
       │    hello      │   
       │──────────────>│   
     ┌─┴─┐          ┌──┴──┐
     │Bob│          │Alice│
     └───┘          └─────┘
$ goplantuml -help
  -format format
    	Output format type. (Options: png,svg,txt) (default "png")
  -help
    	Show help (this) text
  -server server
    	Plantuml server address. Used when generating link or extracting output (default "http://plantuml.com/plantuml")
  -type string
    	Indicates if output type. (Options: save,link,hash) (default "save")

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL