You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate Snap package manager from direct exec.Command calls to unified CommandRunner interface for consistent, testable command execution architecture.
This is Part 2 of Issue #20 - CommandRunner Pattern Implementation
Background
Following successful APT CommandRunner migration (Issue #27), implement the same architectural patterns for Snap package manager to achieve full consistency across the codebase.
Summary
Migrate Snap package manager from direct
exec.Commandcalls to unified CommandRunner interface for consistent, testable command execution architecture.This is Part 2 of Issue #20 - CommandRunner Pattern Implementation
Background
Following successful APT CommandRunner migration (Issue #27), implement the same architectural patterns for Snap package manager to achieve full consistency across the codebase.
Current State
exec.Commandcallsexec.Commandcalls (Issue Implement CommandRunner pattern for unified testable package manager operations #20-3)Scope
exec.Commandto CommandRunnerTechnical Implementation
CommandRunner Integration
exec.Commandcalls with CommandRunner interfaceRunInteractive()Constructor Pattern
Following APT/YUM standardization:
NewPackageManager()- Production use with default CommandRunnerNewPackageManagerWithCustomRunner()- Testing use with mock CommandRunnerTesting Infrastructure
Benefits
Architecture Benefits
Testing Benefits
Acceptance Criteria
Priority
Medium Priority - Important architectural consistency improvement, but lower priority than core APT/YUM functionality.
Dependencies
Related Issues
Implementation Notes