[Discussion] Proposed transition from hyphenated commands to native v2 subcommands
- 主要語言
- Go
- 星號
- 13k
- 分支
- 541
- 平均合併
- 20 小時 47 分鐘
- 30 天內合併 PR
- 4
描述
Currently, maintaining both legacy commands (distrobox-create) and modern subcommands (distrobox create) adds technical debt, requires complex symlink handling, and clutters terminal autocomplete. Moving exclusively to native v2 subcommand dispatch would align the project with modern CLI standards like toolbx and podman.
We could introduce a deprecation warning in the short term and postpone the actual code and symlink removal to a future major release. Keeping the status quo preserves compatibility but retains the maintenance burden, while my previous attempt to remove the code immediately was too disruptive. This issue serves to discuss if such a deprecation roadmap aligns with the project's long-term vision.
reference: #2151
貢獻指南
研究方向
此 issue 討論從帶連字號的命令(distrobox-create)轉換到原生子命令(distrobox create)。先檢查 Go 程式碼庫中的命令分派邏輯,可能位於 main.go 或 cmd/ 中。了解目前如何處理 legacy 命令的 symlink。了解自動補全的設定方式。第一步是在使用 legacy 命令時加入棄用警告。檢查是否已有與命令呼叫相關的測試,以確保變更不會破壞功能。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- cli, shell
- 領域
- cli, developer-experience, tooling
- Issue 類型
- 重構
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100