Skip to content

Commit 584a63c

Browse files
authored
Merge pull request #110 from flashcatcloud/codex/cli-v1.3.30-sdk
chore(sdk): update go-flashduty and regenerate CLI
2 parents 1f1f020 + 0964bb6 commit 584a63c

13 files changed

Lines changed: 197 additions & 53 deletions

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/flashcatcloud/flashduty-cli
33
go 1.25.1
44

55
require (
6-
github.com/flashcatcloud/go-flashduty v0.5.8-0.20260722114743-be934aea6779
6+
github.com/flashcatcloud/go-flashduty v0.5.8
77
github.com/mattn/go-runewidth v0.0.24
88
github.com/spf13/cobra v1.10.2
99
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY=
22
github.com/clipperhouse/uax29/v2 v2.2.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
33
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
4-
github.com/flashcatcloud/go-flashduty v0.5.7 h1:bTgs4wN2mLMaVi8tuPDdR+8ZA6Dd4y6SKeZD+KhL4w8=
5-
github.com/flashcatcloud/go-flashduty v0.5.7/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8=
6-
github.com/flashcatcloud/go-flashduty v0.5.8-0.20260722113601-d9766098937e h1:ZJ2FVBRoKfgQmqYHSQXw+cBjWiDVUKnB/8+/PUgZ+zw=
7-
github.com/flashcatcloud/go-flashduty v0.5.8-0.20260722113601-d9766098937e/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8=
8-
github.com/flashcatcloud/go-flashduty v0.5.8-0.20260722114743-be934aea6779 h1:gUCg7EqrYbxYn1Z7jeNqpLWovPaNin9fdhTPgF093Dk=
9-
github.com/flashcatcloud/go-flashduty v0.5.8-0.20260722114743-be934aea6779/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8=
4+
github.com/flashcatcloud/go-flashduty v0.5.8 h1:hOQtseanaASXrpQsFfzuSonBK5EzoGQWdhzsZO4pWNQ=
5+
github.com/flashcatcloud/go-flashduty v0.5.8/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8=
106
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
117
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
128
github.com/mattn/go-runewidth v0.0.24 h1:cpokDiIn0MGnhdHwuWnJBITySJ20QyNGnY2kR/ay2DU=

internal/cli/group_test.go

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,10 @@ func TestCommandUnknownSubcommandFailsLoudly(t *testing.T) {
4343
}
4444
}
4545

46-
// TestCommandUnknownSubcommandReportedFromAudit reproduces the exact repro
47-
// from the production audit: an AI-SRE session guessed "incident
48-
// list-alerts" instead of the real "incident alerts" subcommand. The typo is
49-
// too far (by both edit-distance and prefix) from any real subcommand name
50-
// for cobra's SuggestionsFor to produce a match, so this only asserts the
51-
// core fix — non-zero exit, clearly-labeled unknown command — not a
52-
// suggestion. See TestCommandUnknownSubcommandFailsLoudly for the
53-
// suggestion-bearing case.
54-
func TestCommandUnknownSubcommandReportedFromAudit(t *testing.T) {
46+
// TestCommandUnknownSubcommandWithoutSuggestionFails verifies that an unknown
47+
// subcommand still returns an error when it is too far from every real
48+
// subcommand for cobra to suggest a match.
49+
func TestCommandUnknownSubcommandWithoutSuggestionFails(t *testing.T) {
5550
saveAndResetGlobals(t)
5651

5752
_, err := execCommand("incident", "list-alerts")

internal/cli/zz_generated_alert_rules.go

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cli/zz_generated_diagnostics.go

Lines changed: 6 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)