bug: "asdf list all" command not exposed (v0.18.0 g2114f1e)
Describe the Bug
Running asdf with either argument --help or no arguments displays a list of commands, but omits list all which is treated as distinct from list. Unfortunately, the CLI framework urfave/cli/v3 doesn't seem to (easily) allow modifying the output of either asdf --help or asdf list --help to expose the command list all.
A couple of possible solutions:
- Rename
list→installedandlist all→available. - Require a mandatory argument to
asdf listto indicate a variation installed or available.
Steps to Reproduce
- Run:
asdforasdf --help - Run:
asdf list --help
Expected Behaviour
Refactoring list and list all to new commands installed and available, respectively, is perhaps the easiest solution with CLI framework urfave/cli/v3. In any case, when asking asdf for help, the command list all should be exposed (without having to resort to giving an invalid argument, e.g.: asdf foo).
Actual Behavior
The list of available commands reported by asdf --help is:
cmd
completion
current
env
exec
help
info
version
install
latest
list
plugin
reshim
set
shimversions
uninstall
update
where
which
Note that list all is missing.
Similarly, the output of asdf list --help does not mention sub-command asdf list all since that is considered a distinct command.
Environment
asdf v0.18.0 g2114f1e