Trait Command

Source
pub trait Command {
    // Required methods
    fn run(
        &self,
        pcp: ProcessedCommandParams,
        app_context: &AppContext<'_>,
    ) -> Result<(), BrixError>;
    fn name(&self) -> String;
}
Expand description

The base command trait that all commands must implement.

Required Methods§

Source

fn run( &self, pcp: ProcessedCommandParams, app_context: &AppContext<'_>, ) -> Result<(), BrixError>

Source

fn name(&self) -> String

Implementors§

Source§

impl Command for ExecCommand

Source§

impl Command for MkdirCommand

Source§

impl Command for SearchReplaceCommand

Source§

impl<T> Command for T
where T: OverwritableCommand,