Skip to content

docs(agc): correct by-species index help text#30

Merged
thanhleviet merged 1 commit into
mainfrom
docs/agc-index-help-default
Jul 4, 2026
Merged

docs(agc): correct by-species index help text#30
thanhleviet merged 1 commit into
mainfrom
docs/agc-index-help-default

Conversation

@thanhleviet

Copy link
Copy Markdown
Collaborator

What

Corrects the atb agc download help text, which still described the by-species
index as a live OSF crawl. Since the hosted-index work (3dd7b9a, 9776742),
loadAGCIndex downloads the node's published index by default and only crawls
as a fallback. Two strings had drifted:

  • the command's long description (either crawled from the OSF node and cached)
  • the --agc-index flag default (crawl the OSF node and cache it)

Both now describe the published-index-first default, and the generated CLI
reference (docs/reference/cli/atb_agc_download.md) is regenerated to match.

This is the code-side follow-up to the guide fix in #29 (which corrected the
hand-written guides/agc.md). Together they bring every AGC by-species doc
surface in line with the code.

Test

Adds TestAGCDownloadHelpAgcIndexDefault: asserts --help advertises the
published-index default and no longer claims the crawl-only default. Written
test-first - it failed on the old strings and passes on the new ones.

Validation

  • go build ./... and go vet ./internal/cli/ clean
  • go test ./internal/cli/ passes
  • make docs is idempotent, so the docs staleness gate stays green
  • mkdocs build --strict passes

Scope

Help text and the regenerated reference only. No behavior change - both edits
are string literals with no call-graph impact.

The download command described the by-species index as a live OSF
crawl in both its long help and the --agc-index flag, but loadAGCIndex
now downloads the node's published index by default and only crawls as
a fallback. Update both strings and regenerate the CLI reference.

Add a help-text test asserting the published-index default so the
wording cannot silently drift back.
@thanhleviet thanhleviet merged commit f974a58 into main Jul 4, 2026
6 checks passed
@thanhleviet thanhleviet deleted the docs/agc-index-help-default branch July 4, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant