hydro_lang/graph/
config.rs1use clap::{Parser, ValueEnum};
2
3#[derive(Copy, Clone, Debug, ValueEnum)]
5pub enum GraphType {
6 Mermaid,
8 Dot,
10 Reactflow,
12}
13
14impl std::fmt::Display for GraphType {
15 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16 write!(f, "{:?}", self)
17 }
18}
19
20#[derive(Parser, Debug, Default)]
22pub struct GraphConfig {
23 #[clap(long)]
25 pub graph: Option<GraphType>,
26
27 #[clap(long)]
29 pub no_metadata: bool,
30
31 #[clap(long)]
33 pub no_location_groups: bool,
34
35 #[clap(long)]
37 pub no_tee_ids: bool,
38
39 #[clap(long)]
41 pub long_labels: bool,
42}