chore(cli): gofmt sweep

`gofmt -w cli/` — trailing newlines, minor whitespace alignment. Caught
during PR-readiness review (`gofmt -l .` had been non-clean since the
em-dash → ASCII bulk replace earlier in the v0.4 series).
This commit is contained in:
nullkey
2026-05-15 05:00:26 +08:00
committed by lyingbug
parent f2e8e3f56c
commit 69fbbfc252
30 changed files with 74 additions and 84 deletions
+3 -4
View File
@@ -65,9 +65,9 @@ func TestKBSearch_SortByNameLength(t *testing.T) {
require.NoError(t, runKBSearch(context.Background(), &KBSearchOptions{Query: "marketing", Limit: 20}, nil, svc))
got := out.String()
// Order: shortest name first.
iShort := strings.Index(got,"kb_short")
iMid := strings.Index(got,"kb_mid")
iLong := strings.Index(got,"kb_long")
iShort := strings.Index(got, "kb_short")
iMid := strings.Index(got, "kb_mid")
iLong := strings.Index(got, "kb_long")
assert.Less(t, iShort, iMid)
assert.Less(t, iMid, iLong)
}
@@ -116,4 +116,3 @@ func TestKBSearch_NetworkError(t *testing.T) {
require.ErrorAs(t, err, &typed)
assert.Equal(t, cmdutil.CodeAuthUnauthenticated, typed.Code)
}