-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Description
Currently 14 of 23 CLI command files (61%) include example usage in their help text. The remaining 9 commands lack examples, making them harder to discover and use correctly. Adding examples to all commands improves usability and reduces the learning curve.
Suggested Changes
Add example usage to these commands:
-
compile_command.go- Most frequently used, needs examples for:- Single workflow compilation
- Batch compilation with
--all - Compilation with validation flags
-
trial_command.go- Complex command needing examples for:- Basic trial run
- Trial with environment variables
- Trial with specific repository context
-
actions_build_command.go- Developer tool needing examples -
codemod_slash_command.go- Needs codemod examples -
generate_action_metadata_command.go- Needs generation examples -
list_command.go- Needs listing examples -
Other commands - Review and add as needed
Example format to follow:
Examples:
gh aw compile workflow-name # Compile single workflow
gh aw compile --all # Compile all workflows
gh aw compile workflow -v # Verbose outputFiles Affected
Commands missing examples:
pkg/cli/compile_command.go(HIGH PRIORITY - most used)pkg/cli/trial_command.go(HIGH PRIORITY - complex usage)pkg/cli/actions_build_command.gopkg/cli/codemod_slash_command.gopkg/cli/generate_action_metadata_command.gopkg/cli/list_command.go- Others TBD after review
Success Criteria
- All 23 CLI commands have at least 3 usage examples
- Examples cover common use cases (basic, intermediate, advanced)
- Examples follow consistent format matching existing commands
- Examples tested and verified working
-
gh aw --helpoutput improved for all commands - Example coverage increased from 61% to 100%
Source
Extracted from analysis of current CLI codebase showing 14/23 commands with examples.
Related to User Experience Analysis discussion #14234 recommendation: "Add more practical examples to CLI commands"
Priority
Medium - Improves discoverability and usability but existing commands work. Focus on high-usage commands first (compile, trial).
AI generated by Discussion Task Miner - Code Quality Improvement Agent
- expires on Feb 8, 2026, 1:29 AM UTC