Skip to content

Add CLI reference generation script#1167

Open
dkijania wants to merge 9 commits intomainfrom
dkijania/cli-reference-script
Open

Add CLI reference generation script#1167
dkijania wants to merge 9 commits intomainfrom
dkijania/cli-reference-script

Conversation

@dkijania
Copy link
Copy Markdown
Member

Summary

  • Add a helper script (scripts/generate-cli-reference.sh) to auto-generate CLI reference documentation from mina daemon --help output

Test plan

  • Run the script and verify it produces valid markdown output

🤖 Generated with Claude Code

Add a helper script to auto-generate CLI reference documentation
from mina daemon --help output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs2 Ready Ready Preview, Comment Apr 8, 2026 0:01am

Request Review

dkijania and others added 2 commits March 17, 2026 21:07
Add a helper script to auto-generate CLI reference documentation
from mina daemon --help output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dkijania and others added 2 commits March 18, 2026 00:12
- On PRs: check if CLI reference is outdated and fail with a diff if so
- On push to main / workflow_dispatch: check + auto-create PR with update
- Trigger on changes to the CLI reference doc, generation script, or workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix shell operator precedence in 3 places where `cmd 2>&1 || true >> file`
  was parsed as `(cmd) || (true >> file)`, causing empty code blocks
- Add MDX frontmatter and intro text to match committed docs format
- Add missing `daemon` group to GROUPS array

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
GROUPS is a bash built-in array containing the current user's Unix
group IDs, which silently overwrites the declared array values.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Multi-line subcommand descriptions have continuation lines with extra
leading whitespace. Only parse lines matching the subcommand pattern
(2 spaces + non-space) to avoid extracting description fragments.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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