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
@@ -27,7 +27,7 @@ func TestInitCommand(t *testing.T) {
|
||||
name: "init with custom prefix",
|
||||
prefix: "myproject",
|
||||
quiet: false,
|
||||
wantOutputText: "myproject-1, myproject-2",
|
||||
wantOutputText: "myproject-<hash>",
|
||||
},
|
||||
{
|
||||
name: "init with quiet flag",
|
||||
@@ -39,7 +39,7 @@ func TestInitCommand(t *testing.T) {
|
||||
name: "init with prefix ending in hyphen",
|
||||
prefix: "test-",
|
||||
quiet: false,
|
||||
wantOutputText: "test-1, test-2",
|
||||
wantOutputText: "test-<hash>",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user