You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
snapcraft has a number of subcommands that come in pairs, of the form:
$ snapcraft fubar
$ snapcraft list-fubar
which mostly are consistent, but not totally. The variations I see are:
plugins
extensions
tracks
revisions
keys
validation-sets [sort of]
For the first four, if you run "snapcraft help list-fubar", the output, toward the end, refers the reader to the shorter form, but if you ask for help for the short form, you do not get referred to the longer form (a bit weird).
Next, it seems that the commands "list-keys" and "keys" are equivalent, but the "help" output for the two are entirely different; examine the output of each of:
$ snapcraft help list-keys
$ snapcraft help keys
to appreciate the strangeness.
Finally, for consistency, if there is a "list-validation-sets" subcommand, then there should be a "validation-sets" subcommand.
I can't think of a general rule for consistency for the above, but there should definitely be some consistency.
To Reproduce
Run the various "help" subcommands.
Environment
Ubuntu 22.04 amd64.
snapcraft.yaml
None.
Relevant log output
None.
Additional context
No response
The text was updated successfully, but these errors were encountered:
rpjday
added
the
bug
Actual bad behavior that don't fall into maintenance or documentation
label
Jul 14, 2023
Bug Description
snapcraft has a number of subcommands that come in pairs, of the form:
$ snapcraft fubar
$ snapcraft list-fubar
which mostly are consistent, but not totally. The variations I see are:
For the first four, if you run "snapcraft help list-fubar", the output, toward the end, refers the reader to the shorter form, but if you ask for help for the short form, you do not get referred to the longer form (a bit weird).
Next, it seems that the commands "list-keys" and "keys" are equivalent, but the "help" output for the two are entirely different; examine the output of each of:
$ snapcraft help list-keys
$ snapcraft help keys
to appreciate the strangeness.
Finally, for consistency, if there is a "list-validation-sets" subcommand, then there should be a "validation-sets" subcommand.
I can't think of a general rule for consistency for the above, but there should definitely be some consistency.
To Reproduce
Run the various "help" subcommands.
Environment
Ubuntu 22.04 amd64.
snapcraft.yaml
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: