aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-23 12:34:24 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-09-23 12:34:24 -0700
commit1b63dcc5310a4f93d5f5b7d266c269c1cb37649d (patch)
tree6f97d7a04f3d0d513fa72191570a0f5fd7a8aeb2 /data
parent9f893384db123567087d5cb5f5016df571512b38 (diff)
downloadmeson-1b63dcc5310a4f93d5f5b7d266c269c1cb37649d.zip
meson-1b63dcc5310a4f93d5f5b7d266c269c1cb37649d.tar.gz
meson-1b63dcc5310a4f93d5f5b7d266c269c1cb37649d.tar.bz2
zsh: Add completions for meson compile
Diffstat (limited to 'data')
-rw-r--r--data/shell-completions/zsh/_meson16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/shell-completions/zsh/_meson b/data/shell-completions/zsh/_meson
index 74dfca4..f8946de 100644
--- a/data/shell-completions/zsh/_meson
+++ b/data/shell-completions/zsh/_meson
@@ -80,6 +80,7 @@ local -a meson_commands=(
'test:run tests'
'wrap:manage source dependencies'
'subprojects:manage subprojects'
+'compile:Build the project'
)
(( $+functions[__meson_is_build_dir] )) || __meson_is_build_dir() {
@@ -383,6 +384,21 @@ _arguments \
}
+(( $+functions[_meson-compile] )) || _meson-compile() {
+ local curcontext="$curcontext"
+ local -a specs=(
+ "$__meson_cd"
+ '--clean[Clean the build directory]'
+ '(-j --jobs)'{'-j','--jobs'}'=[the number fo work jobs to run (if supported)]:_guard "[0-9]#" "number of jobs"'
+ '(-l --load-averate)'{'-l','--load-average'}'=[the system load average to try to maintain (if supported)]:_guard "[0-9]#" "load average"'
+ '(-v --verbose)'{'-v','--verbose'}'[Show more output]'
+ '--ninja-args=[Arguments to pass to ninja (only when using ninja)]'
+ '--vs-args=[Arguments to pass to vs (only when using msbuild)]'
+ )
+_arguments \
+ '(: -)'{'--help','-h'}'[show a help message and quit]' \
+ "${(@)specs}"
+}
if [[ $service != meson ]]; then
_call_function ret _$service