Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add graph-easy package #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nathanielvarona
Copy link

@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
Copy link
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