pub trait Builtin {
    // Required method
    fn run(
        self,
        argv: Vec<CString>,
        runtime: &mut Runtime<'_>
    ) -> Result<WaitStatus>;
}
Expand description

A builtin is a custom shell command, often changing the state of the shell in some way.

Required Methods§

source

fn run( self, argv: Vec<CString>, runtime: &mut Runtime<'_> ) -> Result<WaitStatus>

Execute the shell builtin command, returning a retult of the completion.

Implementors§