valeriobelli / gh-milestone

GitHub CLI extension for managing Milestones
MIT License
54 stars 2 forks source link

Enhance commands interface #9

Closed valeriobelli closed 2 years ago

valeriobelli commented 2 years ago

Is your feature request related to a problem? Please describe. Some subcommands have options that are not validated nor admit case-insensitive values. This makes the user experience a bit sloppy. For example, a developer could use gh milestone list --orderBy.direction=foobar to get an error afterwards because the GraphQL query errored.

Describe the solution you'd like

  1. Let the subcommands' options get the correct values by validating the values used. If the value is invalid, the subcommand must show an error message. This behaviour would prevent the users make errors due to typos.
  2. Let the subcommands' options get case-insensitive values.

Describe alternatives you've considered None.

Additional information/context None.