Enum clap_complete::dynamic::shells::CompleteCommand
source · pub enum CompleteCommand {
Complete(CompleteArgs),
}
Available on crate feature
unstable-dynamic
only.Expand description
A subcommand definition to flatten
into your CLI
This provides a one-stop solution for integrating completions into your CLI
Variants§
Complete(CompleteArgs)
Register shell completions for this program
Implementations§
source§impl CompleteCommand
impl CompleteCommand
sourcepub fn complete(&self, cmd: &mut Command) -> Infallible
pub fn complete(&self, cmd: &mut Command) -> Infallible
Process the completion request
sourcepub fn try_complete(&self, cmd: &mut Command) -> Result<()>
pub fn try_complete(&self, cmd: &mut Command) -> Result<()>
Process the completion request
Trait Implementations§
source§impl Clone for CompleteCommand
impl Clone for CompleteCommand
source§fn clone(&self) -> CompleteCommand
fn clone(&self) -> CompleteCommand
Returns a copy of the value. Read more
1.0.0 · 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 CompleteCommand
impl Debug for CompleteCommand
source§impl FromArgMatches for CompleteCommand
impl FromArgMatches for CompleteCommand
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 CompleteCommand
impl Subcommand for CompleteCommand
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
source§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 RefUnwindSafe for CompleteCommand
impl Send for CompleteCommand
impl Sync for CompleteCommand
impl Unpin for CompleteCommand
impl UnwindSafe for CompleteCommand
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