cli/patch: Use clap
Add patch CLI parsing with clap
Add patch CLI parsing with clap
Changes:
- Rebase
Various fixes
Improve the initial draft
The non-exhaustive list of changes are:
- Follow the original copy of the
rad patchcommand help - Make
MessageArgsa re-usable struct that converts toMessage - Restructure
ReviewArgsand removeReviewActionArgs– the conversion to thereview::Operationwas incorrect, so this was fixed. While I was at it, I also improved the grouping of those parameters, using someclaptricks. - Ensured the diff of
commands::patchis easier to read - Added
LabelArgsandAssignArgsso that we can mark them asrequired - Hide the
[no-]announceflags, and expose them throughshould_announce - Removed some unused fields
Changes:
- Resolve TODOs
- Fixes to visibility
Review and rebase
Changes:
- Change formatting of (default: cwd) to [default: cwd]
pub(super)forReviewOptions
Rebase