Skip to content

Add graph-easy package#111

Open
nathanielvarona wants to merge 1 commit intowhalebrew:masterfrom
nathanielvarona:add-graph-easy-package
Open

Add graph-easy package#111
nathanielvarona wants to merge 1 commit intowhalebrew:masterfrom
nathanielvarona:add-graph-easy-package

Conversation

@nathanielvarona
Copy link
Copy Markdown

@nathanielvarona nathanielvarona commented Aug 3, 2024

graph-easy is a tool categorized as Diagram as Code

Examples 1: Piping the Text

$ echo "[a]->[b]" | 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
$ graph-easy --input=longchain.txt
+---+     +---+     +---+     +---+     +---+
| a | --> | b | --> | c | --> | d | --> | e |
+---+     +---+     +---+     +---+     +---+

Example 3: Using the here-strings

$ graph-easy <<< "[a]->[b]->[c][b]->[d]->[e]"
+---+     +---+     +---+     +---+
| a | --> | b | --> | d | --> | e |
+---+     +---+     +---+     +---+
            |
            |
            v
          +---+
          | c |
          +---+

Project Sources
https://metacpan.org/pod/Graph::Easy
https://github.com/shlomif/perl-graph-easy

@nathanielvarona nathanielvarona force-pushed the add-graph-easy-package branch from 178050b to 9142e51 Compare August 6, 2024 06:52
@nathanielvarona
Copy link
Copy Markdown
Author

PR is pending, but you can use the image hosted at https://hub.docker.com/r/nathanielvarona/graph-easy.

Install it directly from the image repo and use it.

$ whalebrew install nathanielvarona/graph-easy

$ echo "[a]->[b]" | graph-easy
+---+     +---+
| a | --> | b |
+---+     +---+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant