[−][src]Struct clap_nested::Commander
Define a group of subcommands to be run directly, or converted as a whole into a higher-order command
Methods
impl<'a, S: ?Sized> Commander<'a, S, S>
[src]
impl<'a, S: ?Sized, T: ?Sized> Commander<'a, S, T>
[src]
pub fn options(
self,
opts: impl for<'x, 'y> Fn(App<'x, 'y>) -> App<'x, 'y> + 'a
) -> Self
[src]
self,
opts: impl for<'x, 'y> Fn(App<'x, 'y>) -> App<'x, 'y> + 'a
) -> Self
pub fn args<U: ?Sized>(
self,
args: impl for<'x> Fn(&'x S, &'x ArgMatches) -> &'x U + 'a
) -> Commander<'a, S, U>
[src]
self,
args: impl for<'x> Fn(&'x S, &'x ArgMatches) -> &'x U + 'a
) -> Commander<'a, S, U>
pub fn add_cmd(self, cmd: impl CommandLike<T> + 'a) -> Self
[src]
pub fn no_cmd(
self,
no_cmd: impl Fn(&T, &ArgMatches) -> StdResult<(), ClapError> + 'a
) -> Self
[src]
self,
no_cmd: impl Fn(&T, &ArgMatches) -> StdResult<(), ClapError> + 'a
) -> Self
pub fn into_cmd(self, name: &'a str) -> MultiCommand<'a, S, T>
[src]
impl<'a, T: ?Sized> Commander<'a, (), T>
[src]
pub fn run(&self) -> StdResult<(), ClapError>
[src]
pub fn run_with_args(
&self,
args: impl IntoIterator<Item = impl Into<OsString> + Clone>
) -> StdResult<(), ClapError>
[src]
&self,
args: impl IntoIterator<Item = impl Into<OsString> + Clone>
) -> StdResult<(), ClapError>
Auto Trait Implementations
impl<'a, S, T> !Send for Commander<'a, S, T>
impl<'a, S: ?Sized, T: ?Sized> Unpin for Commander<'a, S, T>
impl<'a, S, T> !Sync for Commander<'a, S, T>
impl<'a, S, T> !UnwindSafe for Commander<'a, S, T>
impl<'a, S, T> !RefUnwindSafe for Commander<'a, S, T>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,