[−][src]Struct clishe::Shell
A command that spawns a shell of the provided dispatcher type.
The shell command spawns a shell using rustyline and shellwords libraries. The type arguments it takes are straightforward:
- Context type (state)
- Return type (same as command hierarchy)
- Dispatcher to create a shell for (can be self-referential)
Example
ⓘThis example is not tested
dispatchers! { Food(self, _: &mut u64) -> Result<()> [ Shell: clishe::Shell<u64, (), Food>, ], }
Trait Implementations
impl<C, R, A> Clap for Shell<C, R, A> where
A: Clap + Command<C, R>,
[src]
A: Clap + Command<C, R>,
fn parse() -> Self
[src]
fn try_parse() -> Result<Self, Error>
[src]
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
[src]
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
[src]
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
impl<C, R, A> Command<C, R> for Shell<C, R, A> where
A: Clap + Command<C, R>,
[src]
A: Clap + Command<C, R>,
impl<C, R, A> FromArgMatches for Shell<C, R, A> where
A: Clap + Command<C, R>,
[src]
A: Clap + Command<C, R>,
fn from_arg_matches(_matches: &ArgMatches) -> Self
[src]
impl<C, R, A> IntoApp for Shell<C, R, A> where
A: Clap + Command<C, R>,
[src]
A: Clap + Command<C, R>,
Auto Trait Implementations
impl<C, R, A> RefUnwindSafe for Shell<C, R, A> where
A: RefUnwindSafe,
C: RefUnwindSafe,
R: RefUnwindSafe,
A: RefUnwindSafe,
C: RefUnwindSafe,
R: RefUnwindSafe,
impl<C, R, A> Send for Shell<C, R, A> where
A: Send,
C: Send,
R: Send,
A: Send,
C: Send,
R: Send,
impl<C, R, A> Sync for Shell<C, R, A> where
A: Sync,
C: Sync,
R: Sync,
A: Sync,
C: Sync,
R: Sync,
impl<C, R, A> Unpin for Shell<C, R, A> where
A: Unpin,
C: Unpin,
R: Unpin,
A: Unpin,
C: Unpin,
R: Unpin,
impl<C, R, A> UnwindSafe for Shell<C, R, A> where
A: UnwindSafe,
C: UnwindSafe,
R: UnwindSafe,
A: UnwindSafe,
C: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,