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 output
Files 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.go
pkg/cli/codemod_slash_command.go
pkg/cli/generate_action_metadata_command.go
pkg/cli/list_command.go
- Others TBD after review
Success Criteria
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
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:--alltrial_command.go- Complex command needing examples for:actions_build_command.go- Developer tool needing examplescodemod_slash_command.go- Needs codemod examplesgenerate_action_metadata_command.go- Needs generation exampleslist_command.go- Needs listing examplesOther commands - Review and add as needed
Example format to follow:
Files 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.goSuccess Criteria
gh aw --helpoutput improved for all commandsSource
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).