Consolidate CLI commands to reduce top-level surface area

- migrate-* commands → subcommands of `bd migrate`
- relate/unrelate → subcommands of `bd dep`
- daemons subcommands → available under `bd daemon`
- comment alias → hidden with deprecation warning

All old commands still work with deprecation warnings for backwards
compatibility. Reduces visible top-level commands from ~73 to 66.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-28 13:52:21 -08:00
parent 5ccf12ea57
commit 135802f1aa
8 changed files with 86 additions and 138 deletions

View File

@@ -203,21 +203,15 @@ Examples:
},
}
// commentCmd is a top-level alias for commentsAddCmd
// commentCmd is a hidden top-level alias for commentsAddCmd (backwards compat)
var commentCmd = &cobra.Command{
Use: "comment [issue-id] [text]",
GroupID: "issues",
Short: "Add a comment to an issue (alias for 'comments add')",
Long: `Add a comment to an issue. This is a convenient alias for 'bd comments add'.
Examples:
# Add a comment
bd comment bd-123 "Working on this now"
# Add a comment from a file
bd comment bd-123 -f notes.txt`,
Args: cobra.MinimumNArgs(1),
Run: commentsAddCmd.Run,
Use: "comment [issue-id] [text]",
Short: "Add a comment to an issue (alias for 'comments add')",
Long: `Add a comment to an issue. This is an alias for 'bd comments add'.`,
Args: cobra.MinimumNArgs(1),
Run: commentsAddCmd.Run,
Hidden: true,
Deprecated: "use 'bd comments add' instead",
}
func init() {