fix(init): update output to show hash-based ID format
The bd init and quickstart commands displayed outdated ID format examples showing sequential IDs (prefix-1, prefix-2, ...) but beads has used content-based hash IDs since bd-8e05. Updated output now correctly shows: Issues will be named: prefix-<hash> (e.g., prefix-a3f2dd) This matches the actual GenerateHashID implementation in internal/types/id_generator.go which generates 6-8 char hex hashes. test(init): update test expectations to match hash-based ID format Tests were checking for the old sequential format (prefix-1, prefix-2) but the code now outputs hash-based format (prefix-<hash>). Co-authored-by: cc-vps <crcatala+vps@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2b031b9441
commit
cb5ebfc667
@@ -26,7 +26,7 @@ var quickstartCmd = &cobra.Command{
|
||||
fmt.Printf(" Auto-detects prefix from directory name (e.g., myapp-1, myapp-2)\n\n")
|
||||
|
||||
fmt.Printf(" %s Initialize with custom prefix\n", cyan("bd init --prefix api"))
|
||||
fmt.Printf(" Issues will be named: api-1, api-2, ...\n\n")
|
||||
fmt.Printf(" Issues will be named: api-<hash> (e.g., api-a3f2dd)\n\n")
|
||||
|
||||
fmt.Printf("%s\n", bold("CREATING ISSUES"))
|
||||
fmt.Printf(" %s\n", cyan("bd create \"Fix login bug\""))
|
||||
|
||||
Reference in New Issue
Block a user