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
@@ -222,7 +222,7 @@ With --stealth: configures global git settings for invisible beads usage:
|
||||
fmt.Printf(" Mode: %s\n", cyan("no-db (JSONL-only)"))
|
||||
fmt.Printf(" Issues file: %s\n", cyan(jsonlPath))
|
||||
fmt.Printf(" Issue prefix: %s\n", cyan(prefix))
|
||||
fmt.Printf(" Issues will be named: %s\n\n", cyan(prefix+"-1, "+prefix+"-2, ..."))
|
||||
fmt.Printf(" Issues will be named: %s\n\n", cyan(prefix+"-<hash> (e.g., "+prefix+"-a3f2dd)"))
|
||||
fmt.Printf("Run %s to get started.\n\n", cyan("bd --no-db quickstart"))
|
||||
}
|
||||
return
|
||||
@@ -440,7 +440,7 @@ With --stealth: configures global git settings for invisible beads usage:
|
||||
fmt.Printf("\n%s bd initialized successfully!\n\n", green("✓"))
|
||||
fmt.Printf(" Database: %s\n", cyan(initDBPath))
|
||||
fmt.Printf(" Issue prefix: %s\n", cyan(prefix))
|
||||
fmt.Printf(" Issues will be named: %s\n\n", cyan(prefix+"-1, "+prefix+"-2, ..."))
|
||||
fmt.Printf(" Issues will be named: %s\n\n", cyan(prefix+"-<hash> (e.g., "+prefix+"-a3f2dd)"))
|
||||
fmt.Printf("Run %s to get started.\n\n", cyan("bd quickstart"))
|
||||
|
||||
// Run bd doctor diagnostics to catch setup issues early (bd-zwtq)
|
||||
|
||||
Reference in New Issue
Block a user