Skip to content

Generate the qw command reference from the CLI's usage strings #45

Description

@flyingrobots

docs/reference/qw-cli.md is a hand-maintained command reference, but the
canonical command/flag list already lives in apps/warp/src/cli.mjs as the
renderUsage / renderInstallUsage / renderWarpspaceUsage / render*Usage
strings the CLI prints. The two will drift.

Per docs/DOCUMENTATION_POLICY.md §3 ("generate what machines already know")
the reference should be generated from, or validated against, the CLI itself —
e.g. a script that renders the usage surface to a Markdown fragment, plus a
docs-lint check that the committed reference matches. Then a new flag updates one
place and the docs follow.

Bonus: the same generator could assert every documented command/flag exists in
the parser and vice-versa, closing the gap this audit found by hand
(qw build/qw doctor were documented as runnable but never existed).

Activity

  1. coderabbitai commented on Jun 25, 2026

    @coderabbitai
    🔗 Related PRs

    #20 - Rewrite README around witnessed causal history [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cool ideasSalvaged or speculative idea worth exploring

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions