refactor: relocate thanks command to bd info --thanks (bd-wb9g)

- Add --thanks flag to bd info command
- Make bd thanks a hidden command (deprecated but still works)
- Part of CLI consolidation effort (bd-9115)

🤖 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-27 16:08:34 -08:00
parent 1611f16751
commit 2810cf05cc
3 changed files with 22 additions and 9 deletions

View File

@@ -31,10 +31,18 @@ Examples:
bd info --json
bd info --schema --json
bd info --whats-new
bd info --whats-new --json`,
bd info --whats-new --json
bd info --thanks`,
Run: func(cmd *cobra.Command, args []string) {
schemaFlag, _ := cmd.Flags().GetBool("schema")
whatsNewFlag, _ := cmd.Flags().GetBool("whats-new")
thanksFlag, _ := cmd.Flags().GetBool("thanks")
// Handle --thanks flag
if thanksFlag {
printThanksPage()
return
}
// Handle --whats-new flag
if whatsNewFlag {
@@ -759,6 +767,7 @@ func showWhatsNew() {
func init() {
infoCmd.Flags().Bool("schema", false, "Include schema information in output")
infoCmd.Flags().Bool("whats-new", false, "Show agent-relevant changes from recent versions")
infoCmd.Flags().Bool("thanks", false, "Show thank you page for contributors")
infoCmd.Flags().BoolVar(&jsonOutput, "json", false, "Output in JSON format")
rootCmd.AddCommand(infoCmd)
}

View File

@@ -109,12 +109,16 @@ var beadsContributors = map[string]int{
}
var thanksCmd = &cobra.Command{
Use: "thanks",
Short: "Thank the human contributors to beads",
Use: "thanks",
Short: "Thank the human contributors to beads",
Hidden: true, // Deprecated: use 'bd info --thanks' instead
Long: `Display a thank you page listing all human contributors to the beads project.
DEPRECATED: Use 'bd info --thanks' instead.
Examples:
bd thanks # Show thank you page
bd info --thanks # Show thank you page (preferred)
bd thanks # Legacy command (still works)
`,
Run: func(cmd *cobra.Command, args []string) {
printThanksPage()