Skip to content

Commit

Permalink
Add clap docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sed-i committed Aug 22, 2024
1 parent e138e1f commit f05fcc0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mod string_utils;
use crate::string_utils::MermaidRelated;
use bundle::Bundle;

/// Transform juju bundles into diagrams:
#[derive(Parser)]
#[command(version, about, long_about = None)]
struct Cli {
Expand All @@ -23,13 +24,20 @@ struct Cli {

#[derive(Subcommand)]
enum Commands {
/// Output as mermaid diagram (see https://mermaid.live)
Mermaid {
/// Whether to render a mermaid.live image url
#[arg(long)]
url: bool,

/// Output a subgraph containing only the given app and its immediate neighbors
#[arg(long)]
spotlight: Option<String>,
},

/// Output as graphviz diagram
Graphviz {
/// Output a subgraph containing only the given app and its immediate neighbors
#[arg(long)]
spotlight: Option<String>,
},
Expand Down

0 comments on commit f05fcc0

Please sign in to comment.