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,