Struct terminal_cli::PrefixedExecutor
[−]
[src]
pub struct PrefixedExecutor<'a: 'p, 'p> { /* fields omitted */ }
Trait Implementations
impl<'a, 'p> CliContext<'a> for PrefixedExecutor<'a, 'p>
[src]
fn with_prefix<'b>(
&'b mut self,
prefix: &str
) -> Option<PrefixedExecutor<'a, 'b>>
[src]
&'b mut self,
prefix: &str
) -> Option<PrefixedExecutor<'a, 'b>>
Creates a new prefixed execution context, but only if the current line matches. Reduces the processing overhead for large tree command environments. Read more
fn command<'b>(&'b mut self, cmd: &str) -> Option<CommandContext<'b>>
[src]
Announces a command to be executed. Returns an execution context in case the command is invoked.
fn property<'b, V, P, Id: Into<Cow<'b, str>>>(
&'b mut self,
property_id: Id,
input_parser: P
) -> Option<PropertyContext<'b, V>> where
P: ValueInput<V>,
V: Display,
[src]
&'b mut self,
property_id: Id,
input_parser: P
) -> Option<PropertyContext<'b, V>> where
P: ValueInput<V>,
V: Display,
Announces a property that can be manipulated. Returns an execution context in case the property is to be either retrieved or updated. Read more