Rename catalog-zone-gen to catz across codebase

Update binary name, usage strings, generated file headers, tests,
and README. The generated BIND config header now includes the
install path: go install go.askask.com/catz@latest
This commit is contained in:
2026-04-03 18:27:00 -07:00
parent f21d9c8ff5
commit af9b4ae832
7 changed files with 19 additions and 19 deletions

View File

@@ -18,7 +18,7 @@ func TestGenerateBindConf(t *testing.T) {
got := generateBindConf(entries, emptyCfg)
// Header
assertContains(t, got, "# THIS FILE IS GENERATED BY catalog-zone-gen")
assertContains(t, got, "# THIS FILE IS GENERATED BY catz (go install go.askask.com/catz@latest)")
assertContains(t, got, "#=============================================")
// Zones should be sorted alphabetically (askask.com before bitcard.org)
@@ -145,7 +145,7 @@ func TestWriteBindConfSkipsCatalogOnlyZones(t *testing.T) {
got := string(data)
// Should have header but no zone blocks
assertContains(t, got, "# THIS FILE IS GENERATED BY catalog-zone-gen")
assertContains(t, got, "# THIS FILE IS GENERATED BY catz (go install go.askask.com/catz@latest)")
if strings.Contains(got, "example.com") {
t.Error("zone without file= should not appear in BIND config")
}