fish-shell/share/completions/archlinux-java.fish
NextAlone 7ffb9359f6
feat: completion for archlinux-java (#8911)
* feat: completion for archlinux-java

* docs: update CHANGELOG.rst
2022-04-26 22:13:22 +02:00

9 lines
804 B
Fish

complete -c archlinux-java -f
complete -c archlinux-java -n __fish_use_subcommand -a status -d 'List installed Java environments and enabled one'
complete -c archlinux-java -n __fish_use_subcommand -a set -d 'Force <JAVA_ENV> as default'
complete -c archlinux-java -n __fish_use_subcommand -a unset -d 'Unset current default Java environment'
complete -c archlinux-java -n __fish_use_subcommand -a get -d 'Return the short name of the Java environment set as default'
complete -c archlinux-java -n __fish_use_subcommand -a fix -d 'Fix an invalid/broken default Java environment configuration'
complete -c archlinux-java -n __fish_use_subcommand -a help -d 'Show help'
complete -c archlinux-java -n "__fish_seen_subcommand_from set" -a "(archlinux-java status | tail -n +2 | tr -s ' ' | cut -d ' ' -f2)"