pub trait Command: Send + Sync {
// Required method
fn execute(
&self,
git: &GitService,
state: &AppState,
) -> Result<CommandResult, CommandError>;
}Expand description
Command trait for executing side effects (git operations)
Required Methods§
Sourcefn execute(
&self,
git: &GitService,
state: &AppState,
) -> Result<CommandResult, CommandError>
fn execute( &self, git: &GitService, state: &AppState, ) -> Result<CommandResult, CommandError>
Execute the command