v0.6.0 Release Notes
Released
Generated: 2026-01-18 10:15 (+00:00) v0.5.0 → v0.6.0
Recommended Commit Message
feat: Implement compose subcommands and fix context-aware -f flag parsing
翻譯
feat: 實作 compose 子命令並修正上下文感知的 -f 旗標解析Summary
Implement missing compose subcommand handlers (ps, logs, restart, exec, build) via unified runCMD() method, and fix argument parsing to correctly distinguish between logs -f (follow mode) and -f <file> (compose file path) based on command context.
翻譯
透過統一的 `runCMD()` 方法實作缺少的 compose 子命令處理器(ps、logs、restart、exec、build),並修正參數解析以根據命令上下文正確區分 `logs -f`(追蹤模式)和 `-fChanges
FEAT
- Implement ps, logs, restart, exec, build compose subcommands via unified
runCMD()handler - Wire up previously empty switch cases to execute actual remote commands
翻譯
- 透過統一的
runCMD()handler 實作 ps、logs、restart、exec、build compose 子命令 - 將先前空的 switch cases 連接至實際執行遠端命令
FIX
- Fix
-fflag parsing to correctly handlelogs -fas follow flag instead of file path - Add early command detection in
parseArgs()to determine context before flag processing
翻譯
- 修正
-f旗標解析,正確處理logs -f為追蹤旗標而非檔案路徑 - 在
parseArgs()新增提前命令偵測,在旗標處理前確定上下文
REFACTOR
- Consolidate down, ps, logs, restart, exec, build cases into single
runCMD()method - Move ANSI color constants to top of
composeCMD.gofile - Simplify remote command execution by removing grep filter
翻譯
- 將 down、ps、logs、restart、exec、build cases 整合至單一
runCMD()方法 - 將 ANSI 色彩常數移至
composeCMD.go檔案頂部 - 移除 grep 過濾器以簡化遠端命令執行
Files Changed
| File | Status | Tag |
|---|---|---|
internal/command/command.go |
Modified | FIX |
internal/command/composeCMD.go |
Modified | FEAT, REFACTOR |
Generated by Claude Code