From cae689d0e4415367a6f734a8281b0231452d7e26 Mon Sep 17 00:00:00 2001 From: thibaud-lclr Date: Tue, 14 Apr 2026 13:55:00 +0200 Subject: [PATCH] fix(bootstrap): include delete in config subcommand hint --- bootstrap/bootstrap.go | 9 ++++++++- bootstrap/bootstrap_test.go | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go index 7108942..3a14226 100644 --- a/bootstrap/bootstrap.go +++ b/bootstrap/bootstrap.go @@ -211,7 +211,14 @@ func trimArgs(args []string) []string { func runConfigCommand(ctx context.Context, opts Options, args []string) error { if len(args) == 0 { - return fmt.Errorf("%w: %s requires one of: %s, %s", ErrSubcommandRequired, CommandConfig, ConfigSubcommandShow, ConfigSubcommandTest) + return fmt.Errorf( + "%w: %s requires one of: %s, %s, %s", + ErrSubcommandRequired, + CommandConfig, + ConfigSubcommandShow, + ConfigSubcommandTest, + ConfigSubcommandDelete, + ) } subcommand := strings.TrimSpace(args[0]) diff --git a/bootstrap/bootstrap_test.go b/bootstrap/bootstrap_test.go index 29031ab..d3d34c1 100644 --- a/bootstrap/bootstrap_test.go +++ b/bootstrap/bootstrap_test.go @@ -68,6 +68,9 @@ func TestRunReturnsCommandNotConfigured(t *testing.T) { if !errors.Is(err, ErrSubcommandRequired) { t.Fatalf("Run error = %v, want ErrSubcommandRequired", err) } + if !strings.Contains(err.Error(), "show, test, delete") { + t.Fatalf("Run error = %q, want mention of show, test, delete", err) + } } func TestRunPrintsVersionByDefault(t *testing.T) {