yuzutech / kroki-cli

A Kroki CLI
MIT License
65 stars 6 forks source link

Add a command to encode a diagram #7

Closed ggrossetie closed 3 years ago

ggrossetie commented 5 years ago
$ kroki encode hello.dot
eNpLyUwvSizIUHBXqOZSUPBIzcnJ17ULzy_KSeGqBQCEzQka
$ cat hello.dot | kroki encode -
eNpLyUwvSizIUHBXqOZSUPBIzcnJ17ULzy_KSeGqBQCEzQka
$ echo "blockdiag {Kroki -> generates -> diagrams}" | kroki encode -
eNpLyslPzk7JTExXqPYuys_OVNC1U0hPzUstSixJLQZxQHJFibnFtQBEwA8V

Initial discussion: https://github.com/yuzutech/kroki/issues/3