Issue Description
Commands: Multiple commands
Type: Documentation inconsistency
Priority: Medium
Issue
The CLI documentation at docs/src/content/docs/setup/cli.md frequently uses the parameter name workflow-name in examples, but the actual CLI command definitions in the source code use [workflow] or (workflow) as the parameter placeholder.
Examples
Documentation (line 416-422):
#### `logs`
Download and analyze workflow execution logs...
```bash wrap
gh aw logs # Download logs for all workflows
gh aw logs workflow-name # Download logs for specific workflow
gh aw logs -c 10 --start-date -1w # Filter by count and date
CLI Source Code (pkg/cli/logs_command.go line 26):
Documentation (line 476-478):
gh aw enable # Enable all workflows
gh aw enable workflow-name # Enable specific workflow
CLI Source Code (cmd/gh-aw/main.go line 133):
Use: "enable [workflow]...",
Impact
This creates confusion about:
- Whether the parameter should include hyphens or not
- What the canonical parameter name actually is
- Consistency between what
--help shows and what documentation shows
Suggested Fix
Option 1 (Recommended): Update documentation to match CLI source code
- Change all
workflow-name → workflow in examples
- This aligns with the actual CLI help output
Option 2: Update CLI source code to match documentation
- Change
[workflow] → [workflow-name] in Use strings
- More descriptive but longer
Recommendation: Go with Option 1 for consistency with actual CLI behavior and brevity.
Files to Update
docs/src/content/docs/setup/cli.md:
- Line 420:
gh aw logs workflow-name → gh aw logs workflow
- Line 423:
gh aw logs workflow-name → gh aw logs workflow
- Line 477:
gh aw enable workflow-name → gh aw enable workflow
- Line 490:
gh aw disable workflow-name → gh aw disable workflow
- Line 528:
gh aw mcp list workflow-name → gh aw mcp list workflow
- Line 531:
gh aw mcp inspect workflow-name → gh aw mcp inspect workflow
- And similar occurrences throughout the file
Status: Documentation needs alignment with CLI source code
AI generated by CLI Consistency Checker
Issue Description
Commands: Multiple commands
Type: Documentation inconsistency
Priority: Medium
Issue
The CLI documentation at
docs/src/content/docs/setup/cli.mdfrequently uses the parameter nameworkflow-namein examples, but the actual CLI command definitions in the source code use[workflow]or(workflow)as the parameter placeholder.Examples
Documentation (line 416-422):
CLI Source Code (
pkg/cli/logs_command.goline 26):Documentation (line 476-478):
CLI Source Code (
cmd/gh-aw/main.goline 133):Impact
This creates confusion about:
--helpshows and what documentation showsSuggested Fix
Option 1 (Recommended): Update documentation to match CLI source code
workflow-name→workflowin examplesOption 2: Update CLI source code to match documentation
[workflow]→[workflow-name]in Use stringsRecommendation: Go with Option 1 for consistency with actual CLI behavior and brevity.
Files to Update
docs/src/content/docs/setup/cli.md:gh aw logs workflow-name→gh aw logs workflowgh aw logs workflow-name→gh aw logs workflowgh aw enable workflow-name→gh aw enable workflowgh aw disable workflow-name→gh aw disable workflowgh aw mcp list workflow-name→gh aw mcp list workflowgh aw mcp inspect workflow-name→gh aw mcp inspect workflowStatus: Documentation needs alignment with CLI source code