asdf icon indicating copy to clipboard operation
asdf copied to clipboard

bug: "asdf list all" command not exposed (v0.18.0 g2114f1e)

Open slewsys opened this issue 7 months ago • 0 comments

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 listinstalled and list allavailable.
  • Require a mandatory argument to asdf list to indicate a variation installed or available.

Steps to Reproduce

  1. Run: asdf or asdf --help
  2. 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

slewsys avatar Sep 27 '25 20:09 slewsys