Meta/ShellCompletions: Complete command list

The command list was missing the help command, and the command order
was different from the help output.
This commit is contained in:
kleines Filmröllchen 2023-05-10 21:59:39 +02:00 committed by Jelle Raaijmakers
parent 96f89d14a3
commit ef7afd8331
Notes: sideshowbarker 2024-07-17 01:23:08 +09:00

View file

@ -10,10 +10,10 @@ _serenity() {
local commands
commands=(
'help'
'build'
'install'
'image'
'copy-src'
'run'
'gdb'
'test'
@ -24,6 +24,7 @@ _serenity() {
'addr2line'
'rebuild-toolchain'
'rebuild-world'
'copy-src'
)
local targets
@ -51,6 +52,10 @@ _serenity() {
# lagom target is not supported for these, remove from targets
targets[$targets[(i)lagom]]=()
;;
help)
# Help command has no targets.
targets=()
;;
esac
_describe 'target' targets
;;