pub struct Cli {
pub output: Option<OutputMode>,
pub quiet: bool,
pub command: Commands,
}Expand description
Main CLI application structure defining the top-level interface.
Fields§
§output: Option<OutputMode>Output mode for the entire invocation.
Defaults to text (the existing human-friendly UI). Set to
json to receive a versioned, machine-readable envelope on
stdout. The flag is intentionally NOT global(true) so that it
must precede the subcommand token; this avoids colliding with
the per-subcommand --output <PATH> arguments on convert,
sync, and translate.
quiet: boolSuppress non-fatal status chatter.
In text mode this silences print_success/print_warning and
progress bars. In JSON mode, free-form eprintln! / println!
chatter (matcher analysis blocks, conflict-resolution warnings,
AI candidate listings) is already suppressed unconditionally;
--quiet additionally silences the structured tracing / log
records that JSON mode would otherwise still allow on stderr.
Like --output, this flag must precede the subcommand token.
command: CommandsThe subcommand to execute
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.