# v0.6.0 Release Notes

> 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
<details>
<summary>翻譯</summary>
feat: 實作 compose 子命令並修正上下文感知的 -f 旗標解析
</details>

***

## 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.
<details>
<summary>翻譯</summary>
透過統一的 `runCMD()` 方法實作缺少的 compose 子命令處理器（ps、logs、restart、exec、build），並修正參數解析以根據命令上下文正確區分 `logs -f`（追蹤模式）和 `-f <file>`（compose 檔案路徑）。
</details>

## Changes

### FEAT
- Implement ps, logs, restart, exec, build compose subcommands via unified `runCMD()` handler
- Wire up previously empty switch cases to execute actual remote commands

<details>
<summary>翻譯</summary>

- 透過統一的 `runCMD()` handler 實作 ps、logs、restart、exec、build compose 子命令
- 將先前空的 switch cases 連接至實際執行遠端命令

</details>

### FIX
- Fix `-f` flag parsing to correctly handle `logs -f` as follow flag instead of file path
- Add early command detection in `parseArgs()` to determine context before flag processing

<details>
<summary>翻譯</summary>

- 修正 `-f` 旗標解析，正確處理 `logs -f` 為追蹤旗標而非檔案路徑
- 在 `parseArgs()` 新增提前命令偵測，在旗標處理前確定上下文

</details>

### REFACTOR
- Consolidate down, ps, logs, restart, exec, build cases into single `runCMD()` method
- Move ANSI color constants to top of `composeCMD.go` file
- Simplify remote command execution by removing grep filter

<details>
<summary>翻譯</summary>

- 將 down、ps、logs、restart、exec、build cases 整合至單一 `runCMD()` 方法
- 將 ANSI 色彩常數移至 `composeCMD.go` 檔案頂部
- 移除 grep 過濾器以簡化遠端命令執行

</details>

***

## Files Changed

| File | Status | Tag |
|------|--------|-----|
| `internal/command/command.go` | Modified | FIX |
| `internal/command/composeCMD.go` | Modified | FEAT, REFACTOR |

***

Generated by [Claude Code](https://gist.github.com/pardnchiu/cc619549138ccc7b57c073c314b7d0d8)
