| 1 |
//! Command-line parser for `sq config inspect`. |
| 2 |
|
| 3 |
use clap::{ |
| 4 |
Parser, |
| 5 |
Subcommand, |
| 6 |
}; |
| 7 |
|
| 8 |
pub mod network; |
| 9 |
pub mod paths; |
| 10 |
pub mod policy; |
| 11 |
|
| 12 |
#[derive(Debug, Parser)] |
| 13 |
#[clap( |
| 14 |
name = "inspect", |
| 15 |
about = "Inspect effective configuration details", |
| 16 |
long_about = "\ |
| 17 |
Inspect effective configuration details |
| 18 |
|
| 19 |
This subcommand can be used to inspect various aspects of the \ |
| 20 |
effective configuration, such as various relevant paths, \ |
| 21 |
the cryptographic policy, the network configuration, etc. |
| 22 |
", |
| 23 |
subcommand_required = true, |
| 24 |
arg_required_else_help = true, |
| 25 |
disable_help_subcommand = true, |
| 26 |
)] |
| 27 |
pub struct Command { |
| 28 |
#[clap(subcommand)] |
| 29 |
pub subcommand: Subcommands, |
| 30 |
} |
| 31 |
|
| 32 |
#[derive(Debug, Subcommand)] |
| 33 |
#[non_exhaustive] |
| 34 |
pub enum Subcommands { |
| 35 |
Paths(paths::Command), |
| 36 |
Network(network::Command), |
| 37 |
Policy(policy::Command), |
| 38 |
} |