[ TOPIC ]
cli-design
3 real merged PRs across 3 projects, ordered easiest to hardest. Read them in order to see how cli-design shows up in production code, then go deeper with the free papers and talks below.
[ 01 // REAL PRs ]
Next (mid) · 3
Add jarmode tools command to print / export the SBOM
This PR demonstrates how to design and implement a robust CLI subcommand for extracting SBOMs from JARs, including manifest parsing, error handling, and comprehensive testing.
feat(cli): optionally exclude status field when using `argocd admin export` command
This PR demonstrates how to add a CLI flag that changes export behavior, propagate it through code, update documentation, and write targeted tests for the new option.
fix(apply): Warn users when `apply` is passed plan options -target, -destroy and -refresh-only if they disagree with the saved plan in use.
This PR teaches how to handle user error and flag misuse in CLI tools while preserving backwards compatibility, including adding targeted warnings and robust tests.
[ 02 // MUST-READ PAPERS ]
Free to read, ranked by citations.
[ 03 // FREE VIDEOS & TALKS ]
Ranked by views.
other topics
