From 03dbf8d8cf3cb9dfefb8e2201f747543d960d417 Mon Sep 17 00:00:00 2001 From: JonJagger Date: Wed, 29 Jul 2026 10:02:09 +0100 Subject: [PATCH] fix: drop the double slash from the boolean flags FAQ link BooleanArgsMessageLink pointed at https://docs.kosli.com//faq/#boolean-flags. The doubled slash is the only such link in the repo, and while the site does serve it, a URL a user is being told to visit should not look malformed. The golden it is asserted against carried the same typo, so the test moved with it. --- cmd/kosli/attestGeneric_test.go | 2 +- cmd/kosli/cli_utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kosli/attestGeneric_test.go b/cmd/kosli/attestGeneric_test.go index 3e9f16f4e..88fccbd62 100644 --- a/cmd/kosli/attestGeneric_test.go +++ b/cmd/kosli/attestGeneric_test.go @@ -71,7 +71,7 @@ func (suite *AttestGenericCommandTestSuite) TestAttestGenericCmd() { wantError: true, name: "links to the boolean flags FAQ when a stray true|false argument remains", cmd: fmt.Sprintf("attest generic foo false --artifact-type file --name bar %s", suite.defaultKosliArguments), - golden: "Error: accepts at most 1 arg(s), received 2 [foo false]\nSee https://docs.kosli.com//faq/#boolean-flags\n", + golden: "Error: accepts at most 1 arg(s), received 2 [foo false]\nSee https://docs.kosli.com/faq/#boolean-flags\n", }, { wantError: true, diff --git a/cmd/kosli/cli_utils.go b/cmd/kosli/cli_utils.go index caf050d0e..1471c045b 100644 --- a/cmd/kosli/cli_utils.go +++ b/cmd/kosli/cli_utils.go @@ -775,7 +775,7 @@ func CustomMaximumNArgs(max int, args []string) error { func BooleanArgsMessageLink(args []string) string { if slices.Contains(args, "true") || slices.Contains(args, "false") { - return "\nSee https://docs.kosli.com//faq/#boolean-flags" + return "\nSee https://docs.kosli.com/faq/#boolean-flags" } else { return "" }