Add initial distributor CLI skeleton

This commit is contained in:
2026-05-31 01:47:39 +00:00
parent 0818733b19
commit 22d0424232
19 changed files with 436 additions and 2 deletions

16
internal/app/app_test.go Normal file
View File

@@ -0,0 +1,16 @@
package app
import "testing"
func TestVersionString(t *testing.T) {
oldVersion := Version
t.Cleanup(func() {
Version = oldVersion
})
Version = "1.2.3"
if got, want := VersionString(), "distributor 1.2.3"; got != want {
t.Fatalf("VersionString() = %q, want %q", got, want)
}
}