package git // GitRunner defines the interface for git operations type GitRunner interface { Run(args []string) (string, error) IsRepo() bool } // DefaultRunner implements GitRunner type DefaultRunner struct{} func (r *DefaultRunner) Run(args []string) (string, error) { return Run(args) } func (r *DefaultRunner) IsRepo() bool { return IsRepo() } // NewRunner creates a new git runner func NewRunner() GitRunner { return &DefaultRunner{} }