pub enum CompletionCommand {
Query(CompletionQueryArgs),
Init(CompletionInitArgs),
Install(CompletionInstallArgs),
}Expand description
What majordomus completion can be asked.
Variants§
Query(CompletionQueryArgs)
The candidates for one command line, from the command graph. What a shell adapter calls on every TAB
Init(CompletionInitArgs)
The shell integration to load once, which carries no command of its own and asks this executable for every candidate
Install(CompletionInstallArgs)
Put that integration into the shell’s startup file, between managed markers, so that no one maintains it by hand
Trait Implementations§
Source§impl Debug for CompletionCommand
impl Debug for CompletionCommand
Source§impl FromArgMatches for CompletionCommand
impl FromArgMatches for CompletionCommand
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 Subcommand for CompletionCommand
impl Subcommand for CompletionCommand
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 CompletionCommand
impl RefUnwindSafe for CompletionCommand
impl Send for CompletionCommand
impl Sync for CompletionCommand
impl Unpin for CompletionCommand
impl UnsafeUnpin for CompletionCommand
impl UnwindSafe for CompletionCommand
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