Skip to content

Regenerate CLI reference docs for list --count flags #338

Description

@obey-agent

Follow-up from post-merge review of #337.

Problem

PR #337 added the public --count flag to both camp list and camp project list, but the checked-in generated CLI reference was not regenerated. The committed docs still omit the new examples and options in:

  • docs/cli-reference/camp-reference.md
  • docs/cli-reference/camp_list.md
  • docs/cli-reference/camp_project_list.md

Evidence

On the merged PR head (16e064f5ad2420ec26de4b37890e0293c174ee23), generating docs into a temporary directory includes the missing entries:

go run ./cmd/camp gendocs --output "$tmp" --format markdown --single

The generated output includes:

  • camp list --count Print only the total number of campaigns
  • --count Print only the total number of campaigns
  • camp project list --count Print only the total number of projects
  • --count Print only the total number of projects

But the committed docs from #337 do not include those lines.

Impact

Users reading the CLI reference will not discover the new count-only mode, and docs drift makes future CLI reference updates noisier.

Suggested fix

Run just docs in projects/camp and commit the generated docs/cli-reference updates.

Review verification

Focused tests still pass:

go test ./cmd/camp ./cmd/camp/project ./internal/project ./internal/ui

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions