pub enum MetaCommand {
Version {
json: bool,
},
License,
Completions {
shell: Shell,
},
Doctor {
json: bool,
},
Agent {
command: AgentSubcommand,
},
}Expand description
Canonical metadata commands exposed by the shared CLI contract.
Variants§
Version
Show version information.
License
Show license text.
Completions
Generate shell completion scripts.
Doctor
Run health checks.
Agent
Inspect or emit agent-skill artifacts for this tool.
Fields
§
command: AgentSubcommandAgent-skill subcommand.
Trait Implementations§
Source§impl Clone for MetaCommand
impl Clone for MetaCommand
Source§fn clone(&self) -> MetaCommand
fn clone(&self) -> MetaCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetaCommand
impl Debug for MetaCommand
impl Eq for MetaCommand
Source§impl FromArgMatches for MetaCommand
impl FromArgMatches for MetaCommand
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl PartialEq for MetaCommand
impl PartialEq for MetaCommand
Source§fn eq(&self, other: &MetaCommand) -> bool
fn eq(&self, other: &MetaCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl StandardCommandMap for MetaCommand
impl StandardCommandMap for MetaCommand
Source§fn to_standard_command(&self, _output: JsonOutput) -> StandardCommand
fn to_standard_command(&self, _output: JsonOutput) -> StandardCommand
Convert a local metadata command into a shared command.
impl StructuralPartialEq for MetaCommand
Source§impl Subcommand for MetaCommand
impl Subcommand for MetaCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for MetaCommand
impl RefUnwindSafe for MetaCommand
impl Send for MetaCommand
impl Sync for MetaCommand
impl Unpin for MetaCommand
impl UnsafeUnpin for MetaCommand
impl UnwindSafe for MetaCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more