Sign inSign up

nathanielvarona/graph-easy

By nathanielvarona

•Updated about 2 years ago

graph-easy - render/convert graphs in/from various formats

Image
Developer tools
Content management system
0

479

nathanielvarona/graph-easy repository overview

⁠Graph-Easy

graph-easy is a tool categorized as Diagram as Code

⁠Project Sources

https://metacpan.org/pod/Graph::Easy⁠

https://github.com/shlomif/perl-graph-easy⁠

⁠Dockerfile Source

https://github.com/nathanielvarona/whalebrew-packages/tree/add-graph-easy-package/graph-easy⁠

I created this Docker Hub repo due to a pending PR whalebrew/whalebrew-packages#111⁠

⁠Image Builds

⁠Basic Image Build
docker buildx build . --file Dockerfile --progress plain --tag nathanielvarona/graph-easy:0.76 --tag nathanielvarona/graph-easy
⁠Multi-platform Image Builds
docker buildx build . --file Dockerfile --progress plain --platform=linux/amd64,linux/arm64 --tag nathanielvarona/graph-easy:0.76 --tag nathanielvarona/graph-easy

⁠Pull the Image

docker pull nathanielvarona/graph-easy

⁠Usage

Examples 1: Piping the Text

$ echo "[a]->[b]" | docker run -i --rm nathanielvarona/graph-easy
+---+     +---+
| a | --> | b |
+---+     +---+

Example 2: From a File

# Create a graph-easy file
$ cat <<EOF > longchain.txt
[a]->[b]->[c]->[d]->[e]
EOF

# Render the graph-easy file
$ docker run -i --rm nathanielvarona/graph-easy --input=longchain.txt
+---+     +---+     +---+     +---+     +---+
| a | --> | b | --> | c | --> | d | --> | e |
+---+     +---+     +---+     +---+     +---+

Example 3: Using the here-strings

$ docker run -i --rm nathanielvarona/graph-easy <<< "[a]->[b]->[c][b]->[d]->[e]"
+---+     +---+     +---+     +---+
| a | --> | b | --> | d | --> | e |
+---+     +---+     +---+     +---+
            |
            |
            v
          +---+
          | c |
          +---+

⁠Whalebrew

⁠Installation
whalebrew install nathanielvarona/graph-easy
⁠Usage

Works like a binary

graph-easy --help

Tag summary

Content type

Image

Digest

sha256:996a72f75…

Size

363.2 MB

Last updated

about 2 years ago

docker pull nathanielvarona/graph-easy