cli: Revisit commands
Whenever we finished migrating the CLI to clap, we should revisit all commands and try to improve them. These are some ideas to consider:
General
- add custom error formatter
- bring back the old error prefix
- add custom hints
- for arguments that can take multiple formats, support e.g.
rad unfollow <NID|--from <DID>> - streamline RID usage
- do not allow RIDs without prefix?
rad fork,rad clone
- consolidate value parser usage across commands (perhaps explore
ValueParserFactory, which should make it easy to select the correct parser when building commands)
Specific
rad issue
- improve
rad issue state
rad unfollow
- support
rad unfollow <NID|--from <DID>>
rad init
- we ignore
no-confirmin several places during the initialization process
Something I’d like to see, after the migration, are parsers for
std::time::Duration, so that we can do something like: