Trait nu_protocol::engine::Command
source · [−]pub trait Command: Send + Sync + CommandClone {
Show 14 methods
fn name(&self) -> &str;
fn signature(&self) -> Signature;
fn usage(&self) -> &str;
fn run(
&self,
engine_state: &EngineState,
stack: &mut Stack,
call: &Call,
input: PipelineData
) -> Result<PipelineData, ShellError>;
fn extra_usage(&self) -> &str { ... }
fn examples(&self) -> Vec<Example>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
{ ... }
fn is_builtin(&self) -> bool { ... }
fn is_known_external(&self) -> bool { ... }
fn is_custom_command(&self) -> bool { ... }
fn is_sub(&self) -> bool { ... }
fn is_parser_keyword(&self) -> bool { ... }
fn is_plugin(&self) -> Option<(&PathBuf, &Option<PathBuf>)> { ... }
fn get_block_id(&self) -> Option<BlockId> { ... }
fn search_terms(&self) -> Vec<&str>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
{ ... }
}
Required Methods
fn name(&self) -> &str
fn signature(&self) -> Signature
fn usage(&self) -> &str
fn run(
&self,
engine_state: &EngineState,
stack: &mut Stack,
call: &Call,
input: PipelineData
) -> Result<PipelineData, ShellError>
Provided Methods
fn extra_usage(&self) -> &str
fn examples(&self) -> Vec<Example>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
fn is_builtin(&self) -> bool
fn is_known_external(&self) -> bool
fn is_custom_command(&self) -> bool
fn is_sub(&self) -> bool
fn is_parser_keyword(&self) -> bool
fn is_plugin(&self) -> Option<(&PathBuf, &Option<PathBuf>)>
fn get_block_id(&self) -> Option<BlockId>
fn search_terms(&self) -> Vec<&str>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,