mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +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
Notes:
sideshowbarker
2024-07-17 01:23:08 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/ef7afd8331 Pull-request: https://github.com/SerenityOS/serenity/pull/18763 Reviewed-by: https://github.com/gmta ✅
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue