pub fn handle_apply_commit_with_handler<H: AppEffectHandler>(
workspace: &dyn Workspace,
handler: &mut H,
logger: &Logger,
colors: Colors,
) -> Result<()>Expand description
Handles the --apply-commit command using effect handler abstraction.
This is a testable version that uses AppEffectHandler for git operations
and Workspace for file I/O, enabling tests to use mocks for isolation.
§Arguments
workspace- The workspace for file operationshandler- The effect handler for git operationslogger- Logger for info/warning messagescolors- Color configuration for output
§Returns
Returns Ok(()) on success or an error if commit fails.