valeriobelli / gh-milestone

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

Align JSON option of `list` subcommand to the other `gh`'s `list` subcommands #16

Closed valeriobelli closed 2 years ago

valeriobelli commented 2 years ago

Is your feature request related to a problem? Please describe.

Currently, the list subcommand exposes the output option to decide which kind of output the command should emit. This command adopts only two kinds of output:

The usages are the following one

$ gh milestone list
$ gh milestone list --output json

which is different from the other subcommands, as for example pr

$ gh pr list --json

Describe the solution you'd like

Given the list subcommand exposes a different interface compared to the other list subcommands and given the option jq works exclusively with a json output, start exposing this kind of output with the option json as done for the other list subcommand.

Describe alternatives you've considered None.

Additional information/context None.