cli/pkg/devops
Snider 06273a12d7
Migrate pkg/devops to Medium abstraction (#293)
* chore(io): migrate pkg/devops to Medium abstraction

This commit migrates the pkg/devops package to use the io.Medium abstraction instead of direct calls to io.Local or the os package.

Changes:
- Updated DevOps, ImageManager, and Manifest structs to hold an io.Medium.
- Updated New, NewImageManager, and LoadConfig to accept an io.Medium.
- Updated ImageSource interface and its implementations (GitHubSource, CDNSource) to accept io.Medium in Download method.
- Refactored internal helper functions (hasFile, hasPackageScript, etc.) to use io.Medium.
- Updated all unit tests and CLI entry points to pass the appropriate io.Medium.

This migration improves the testability and flexibility of the devops package by allowing for different storage backends.

* chore(io): migrate pkg/devops to Medium abstraction

This commit completes the migration of the pkg/devops package to the io.Medium abstraction.

Changes:
- Refactored DevOps, ImageManager, and Manifest structs to use io.Medium for storage operations.
- Updated New, NewImageManager, and LoadConfig to accept an io.Medium.
- Updated ImageSource interface and its implementations (GitHubSource, CDNSource) to accept io.Medium in Download method.
- Refactored internal helper functions (hasFile, hasPackageScript, etc.) to use io.Medium.
- Updated all unit tests and CLI entry points to pass the appropriate io.Medium.
- Fixed formatting issues in test files.

This migration enables easier testing and supports alternative storage backends.
2026-02-04 14:58:03 +00:00
..
sources Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
claude.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
claude_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
config.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
config_test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
devops.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
devops_test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
images.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
images_test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
serve.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
serve_test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
shell.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
shell_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
test_test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00