pub struct Cli {
pub verbose: u8,
pub allow_insecure_server: bool,
pub command: TopLevel,
}Expand description
dsp — AI-agent-friendly CLI for the DaSCH Service Platform.
Fields§
§verbose: u8Increase log verbosity (-v=info, -vv=debug, -vvv=trace). RUST_LOG overrides.
allow_insecure_server: boolAllow a non-local –server to use insecure http:// (see dsp docs connecting).
command: TopLevelImplementations§
Source§impl Cli
impl Cli
Sourcepub fn output_format(&self) -> Option<Format>
pub fn output_format(&self) -> Option<Format>
The effective output format of this invocation, per command. None
marks a command with no user-facing formatted output whose result must
not drive format-gated side effects (e.g. auth token, a raw-credential
pipe). docs has no --format: -j → Json, else Prose.
Layer-neutral by design: the parser resolves the format; it does not name or know what consumes it (the update-notice gate is one consumer).
Sourcepub fn server_flag(&self) -> Option<&str>
pub fn server_flag(&self) -> Option<&str>
The --server/-s value for this invocation, if the command has one and it
was supplied. None for docs (no server flag) or when unset. Used by the
top-level error handler for best-effort _meta.server (D3 of plan 032).
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.