ctl-core 0.1.1

Shared clap chassis for the *ctl CLIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::Args;

/// `-n/--dry-run` with `--preview` as the visible alias.
#[derive(Args, Clone, Debug, Default, Eq, PartialEq)]
pub struct DryRunArgs {
    /// Validate and print the plan. Write nothing.
    #[arg(
        short = 'n',
        long,
        visible_alias = "preview",
        help_heading = "Execution"
    )]
    pub dry_run: bool,
}