pub trait BuiltinCommand: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn execute(&self, args: &[String], shell: &Shell) -> CommandResult;
}Expand description
Shell built-in command
Required Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Get command description
Sourcefn execute(&self, args: &[String], shell: &Shell) -> CommandResult
fn execute(&self, args: &[String], shell: &Shell) -> CommandResult
Execute the command