Skip to content

sed-i/juju-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

juju-graph

juju-graph

Convert a juju bundle to a diagram.

Install

cargo install --git https://github.com/sed-i/juju-graph

Usage

Convert bundle to mermaid:

juju export-bundle | juju-graph mermaid

Output a subgraph containing only the given app and its immediate neighbors:

juju export-bundle | juju-graph mermaid --spotlight grafana

Render a mermaid.live image url:

juju export-bundle | juju-graph mermaid --url

Render svg from graphviz:

juju export-bundle | juju-graph graphviz | dot -Tsvg > bundle.svg 

Development

Run from source

# Read from "bundle.yaml"
cargo run

# Pass via stdin
cargo run < bundle.yaml

# or
juju export-bundle | cargo run

Install from source dir

cargo install --path .
juju-graph < bundle.yaml

References

About

Transform bundles into diagrams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages