From 3f29f134aea0fcd25792492b344e9ad00fb4fa1a Mon Sep 17 00:00:00 2001 From: hughzhou-gif Date: Fri, 8 May 2026 15:43:20 +0800 Subject: [PATCH] docs(cli): point --help footer to agents.asksurf.ai instead of docs.asksurf.ai The Surf docs are served from agents.asksurf.ai (Next.js, surf-landing repo); docs.asksurf.ai is a stale Mintlify mirror that is no longer the canonical source. Update the root --help footer URL and the test assertion that pins it. Co-Authored-By: Claude Opus 4.7 (1M context) --- cli/cli.go | 2 +- cmd/surf/usage_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 880116b..5b2b4d6 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -267,7 +267,7 @@ func Init(name string, version string) { Root.SetHelpTemplate(`{{with (or .Long .Short)}}{{. | trimTrailingWhitespaces | highlight}} {{end}}{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}{{if not .HasParent}} -Documentation: https://docs.asksurf.ai/llms.txt +Documentation: https://agents.asksurf.ai/llms.txt Report issues: https://github.com/asksurf-ai/surf-cli/issues {{end}}`) diff --git a/cmd/surf/usage_test.go b/cmd/surf/usage_test.go index 91a01b0..7ecd9fa 100644 --- a/cmd/surf/usage_test.go +++ b/cmd/surf/usage_test.go @@ -208,7 +208,7 @@ func TestHelpFooterDocLink(t *testing.T) { t.Run("root help has footer", func(t *testing.T) { out, _ := exec.Command(bin, "--help").CombinedOutput() s := string(out) - if !strings.Contains(s, "https://docs.asksurf.ai/llms.txt") { + if !strings.Contains(s, "https://agents.asksurf.ai/llms.txt") { t.Errorf("root --help missing docs link:\n%s", s) } if !strings.Contains(s, "https://github.com/asksurf-ai/surf-cli/issues") { @@ -219,7 +219,7 @@ func TestHelpFooterDocLink(t *testing.T) { t.Run("subcommand help has no footer", func(t *testing.T) { out, _ := exec.Command(bin, "market-price", "--help").CombinedOutput() s := string(out) - if strings.Contains(s, "https://docs.asksurf.ai/llms.txt") { + if strings.Contains(s, "https://agents.asksurf.ai/llms.txt") { t.Errorf("market-price --help should NOT carry root footer:\n%s", s) } })