Command

Trait Command 

Source
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§

Source

fn execute( &self, git: &GitService, state: &AppState, ) -> Result<CommandResult, CommandError>

Execute the command

Implementors§

Source§

impl Command for CheckoutBranchCommand

Source§

impl Command for CreateBranchCommand

Source§

impl Command for MergeBranchCommand

Source§

impl Command for RebaseBranchCommand

Source§

impl Command for CustomCommand

Source§

impl Command for ListMergedBranchesCommand

Source§

impl Command for PruneMergedBranchesCommand

Source§

impl Command for CherryPickCommand

Source§

impl Command for RevertCommand

Source§

impl Command for CommitCommand

Source§

impl Command for OpenInEditorCommand

Source§

impl Command for LogBriefCommand

Source§

impl Command for LogStatsCommand

Source§

impl Command for CheckMergeStatusCommand

Source§

impl Command for PrCheckoutCommand

Source§

impl Command for PrListCommand

Source§

impl Command for PrOpenCommand

Source§

impl Command for FetchAllPruneCommand

Source§

impl Command for PullCommand

Source§

impl Command for PullMergeCommand

Source§

impl Command for PullRebaseCommand

Source§

impl Command for PushCommand

Source§

impl Command for RebaseAbortCommand

Source§

impl Command for RebaseAbortFromConflictCommand

Source§

impl Command for RebaseAbortInterruptedCommand

Source§

impl Command for RebaseContinueCommand

Source§

impl Command for RebaseContinueInterruptedCommand

Source§

impl Command for RebaseResolveConflictsCommand

Source§

impl Command for RebaseSaveAndRunCommand

Source§

impl Command for RebaseSkipCommand

Source§

impl Command for AutoFetchCommand

Source§

impl Command for RemotePruneCommand

Source§

impl Command for SetRemoteSshCommand

Source§

impl Command for ShowRemoteUrlCommand

Source§

impl Command for ResetCommand

Source§

impl Command for StageFilesCommand

Source§

impl Command for UnstageFilesCommand

Source§

impl Command for StageHunkCommand

Source§

impl Command for UnstageHunkCommand

Source§

impl Command for StageLinesCommand

Source§

impl Command for UnstageLinesCommand

Source§

impl Command for ApplyStashCommand

Source§

impl Command for CreateStashCommand

Source§

impl Command for DeleteStashCommand

Source§

impl Command for PopStashCommand