v0.11.0

v0.4.0 Release Notes

Released

Generated: 2026-01-18 08:00 (+00:00) v0.3.0 → v0.4.0

refactor: Restructure compose commands with dispatcher pattern and add down command

翻譯 refactor: 重構 compose 命令為 dispatcher 模式並新增 down 命令

Summary

Refactored the compose command architecture from a single Up() method to a unified ComposeCMD() dispatcher pattern supporting multiple compose subcommands. Added down command implementation.

翻譯 重構 compose 命令架構,從單一 `Up()` 方法改為統一的 `ComposeCMD()` dispatcher 模式,支援多個 compose 子命令。新增 `down` 命令實作。

Changes

FEAT

翻譯
  • 新增 down 命令,透過 podman compose down 停止並移除容器
  • 在 PodmanArg struct 新增 Command 欄位用於命令路由
  • 準備未來命令的 dispatcher 骨架:ps、logs、restart、exec、build

REFACTOR

翻譯
  • 重構 compose 處理從 Up() 改為 ComposeCMD() dispatcher 模式
  • 將 modifyComposeFile 重新命名為 ModifyComposeFile(匯出方法)
  • 將 compose 相關函式移至 composeCMD.go 以改善組織結構
  • 將 CLI 路由從明確的 "up" case 改為 default case 以處理所有 compose 命令

REMOVE

翻譯
  • 移除 internal/command/up.go(功能已遷移至 composeCMD.go)

Files Changed

File Status Tag
cmd/cli/main.go Modified REFACTOR
internal/command/command.go Modified FEAT
internal/command/up.go Deleted REMOVE
internal/command/composeCMD.go Added REFACTOR

Generated by Claude Code