__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#compdef ninja
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Add the following to your .zshrc to tab-complete ninja targets
# fpath=(path/to/ninja/misc/zsh-completion $fpath)
(( $+functions[_ninja-get-targets] )) || _ninja-get-targets() {
dir="."
if [ -n "${opt_args[-C]}" ];
then
eval dir="${opt_args[-C]}"
fi
file="build.ninja"
if [ -n "${opt_args[-f]}" ];
then
eval file="${opt_args[-f]}"
fi
targets_command="ninja -f \"${file}\" -C \"${dir}\" -t targets all"
eval ${targets_command} 2>/dev/null | cut -d: -f1
}
(( $+functions[_ninja-get-tools] )) || _ninja-get-tools() {
# remove the first line; remove the leading spaces; replace spaces with colon
ninja -t list 2> /dev/null | sed -e '1d;s/^ *//;s/ \+/:/'
}
(( $+functions[_ninja-get-modes] )) || _ninja-get-modes() {
# remove the first line; remove the last line; remove the leading spaces; replace spaces with colon
ninja -d list 2> /dev/null | sed -e '1d;$d;s/^ *//;s/ \+/:/'
}
(( $+functions[_ninja-modes] )) || _ninja-modes() {
local -a modes
modes=(${(fo)"$(_ninja-get-modes)"})
_describe 'modes' modes
}
(( $+functions[_ninja-tools] )) || _ninja-tools() {
local -a tools
tools=(${(fo)"$(_ninja-get-tools)"})
_describe 'tools' tools
}
(( $+functions[_ninja-targets] )) || _ninja-targets() {
local -a targets
targets=(${(fo)"$(_ninja-get-targets)"})
_describe 'targets' targets
}
_arguments \
'(- *)'{-h,--help}'[Show help]' \
'(- *)--version[Print ninja version]' \
'-C+[Change to directory before doing anything else]:directories:_directories' \
'-f+[Specify input build file (default=build.ninja)]:files:_files' \
'-j+[Run N jobs in parallel (default=number of CPUs available)]:number of jobs' \
'-l+[Do not start new jobs if the load average is greater than N]:number of jobs' \
'-k+[Keep going until N jobs fail (default=1)]:number of jobs' \
'-n[Dry run (do not run commands but act like they succeeded)]' \
'(-v --verbose --quiet)'{-v,--verbose}'[Show all command lines while building]' \
"(-v --verbose --quiet)--quiet[Don't show progress status, just command output]" \
'-d+[Enable debugging (use -d list to list modes)]:modes:_ninja-modes' \
'-t+[Run a subtool (use -t list to list subtools)]:tools:_ninja-tools' \
'*::targets:_ninja-targets'
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| _busctl | File | 10.32 KB | 0644 |
|
| _bwrap | File | 7.22 KB | 0644 |
|
| _curl | File | 15.93 KB | 0644 |
|
| _dpkg-parsechangelog | File | 1.38 KB | 0644 |
|
| _hostnamectl | File | 2.77 KB | 0644 |
|
| _journalctl | File | 7.89 KB | 0644 |
|
| _kernel-install | File | 862 B | 0644 |
|
| _localectl | File | 3.78 KB | 0644 |
|
| _loginctl | File | 6.36 KB | 0644 |
|
| _meson | File | 20.33 KB | 0644 |
|
| _networkctl | File | 2.44 KB | 0644 |
|
| _ninja | File | 2.79 KB | 0644 |
|
| _run0 | File | 2.67 KB | 0644 |
|
| _sd_hosts_or_user_at_host | File | 128 B | 0644 |
|
| _sd_outputmodes | File | 318 B | 0644 |
|
| _sd_unit_files | File | 263 B | 0644 |
|
| _sq | File | 195.01 KB | 0644 |
|
| _sqv | File | 1.7 KB | 0644 |
|
| _swayidle | File | 785 B | 0644 |
|
| _swaylock | File | 5.39 KB | 0644 |
|
| _systemctl | File | 21.01 KB | 0644 |
|
| _systemd | File | 4 KB | 0644 |
|
| _systemd-analyze | File | 5.6 KB | 0644 |
|
| _systemd-delta | File | 645 B | 0644 |
|
| _systemd-inhibit | File | 1.29 KB | 0644 |
|
| _systemd-path | File | 322 B | 0644 |
|
| _systemd-run | File | 4.5 KB | 0644 |
|
| _systemd-tmpfiles | File | 1.49 KB | 0644 |
|
| _timedatectl | File | 2.16 KB | 0644 |
|
| _udevadm | File | 9.61 KB | 0644 |
|
| _varlinkctl | File | 2.21 KB | 0644 |
|
| _vlc | File | 168.65 KB | 0644 |
|
| _wpctl | File | 1.57 KB | 0644 |
|