Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1003 Bytes

README.md

File metadata and controls

56 lines (41 loc) · 1003 Bytes

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