pub trait CommandFactory: Send + Sync {
// Required methods
fn protocol(&self) -> &str;
fn create_run_command(&self, args: &RunCommandArgs) -> Box<dyn Command>;
fn create_list_command(&self) -> Box<dyn Command>;
fn create_validate_command(&self, path: PathBuf) -> Box<dyn Command>;
}Expand description
Command factory for dynamic command creation.
Required Methods§
Sourcefn create_run_command(&self, args: &RunCommandArgs) -> Box<dyn Command>
fn create_run_command(&self, args: &RunCommandArgs) -> Box<dyn Command>
Create a run command for this protocol.
Sourcefn create_list_command(&self) -> Box<dyn Command>
fn create_list_command(&self) -> Box<dyn Command>
Create a list command for this protocol.
Sourcefn create_validate_command(&self, path: PathBuf) -> Box<dyn Command>
fn create_validate_command(&self, path: PathBuf) -> Box<dyn Command>
Create a validate command for this protocol.