mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
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:
parent
96f89d14a3
commit
ef7afd8331
1 changed files with 6 additions and 1 deletions
|
@ -10,10 +10,10 @@ _serenity() {
|
||||||
|
|
||||||
local commands
|
local commands
|
||||||
commands=(
|
commands=(
|
||||||
|
'help'
|
||||||
'build'
|
'build'
|
||||||
'install'
|
'install'
|
||||||
'image'
|
'image'
|
||||||
'copy-src'
|
|
||||||
'run'
|
'run'
|
||||||
'gdb'
|
'gdb'
|
||||||
'test'
|
'test'
|
||||||
|
@ -24,6 +24,7 @@ _serenity() {
|
||||||
'addr2line'
|
'addr2line'
|
||||||
'rebuild-toolchain'
|
'rebuild-toolchain'
|
||||||
'rebuild-world'
|
'rebuild-world'
|
||||||
|
'copy-src'
|
||||||
)
|
)
|
||||||
|
|
||||||
local targets
|
local targets
|
||||||
|
@ -51,6 +52,10 @@ _serenity() {
|
||||||
# lagom target is not supported for these, remove from targets
|
# lagom target is not supported for these, remove from targets
|
||||||
targets[$targets[(i)lagom]]=()
|
targets[$targets[(i)lagom]]=()
|
||||||
;;
|
;;
|
||||||
|
help)
|
||||||
|
# Help command has no targets.
|
||||||
|
targets=()
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
_describe 'target' targets
|
_describe 'target' targets
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue