1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

bash-completion: analyze: add missing options and verbs

This commit is contained in:
Yu Watanabe 2018-01-10 18:21:35 +09:00
parent 035dd8c0a3
commit 7c3940f6ce

View File

@ -36,12 +36,13 @@ _systemd_analyze() {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local -A OPTS=(
[STANDALONE]='--help --version --system --user --order --require --no-pager --man'
[STANDALONE]='-h --help --version --system --user --order --require --no-pager
--man=no --generators=yes'
[ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern'
)
local -A VERBS=(
[STANDALONE]='time blame plot dump get-log-level get-log-target'
[STANDALONE]='time blame plot dump get-log-level get-log-target calendar'
[CRITICAL_CHAIN]='critical-chain'
[DOT]='dot'
[LOG_LEVEL]='set-log-level'
@ -117,7 +118,7 @@ _systemd_analyze() {
elif __contains_word "$verb" ${VERBS[VERIFY]}; then
if [[ $cur = -* ]]; then
comps='--help --version --system --user --man'
comps='--help --version --system --user --man=no --generators=yes'
else
comps=$( compgen -A file -- "$cur" )
compopt -o filenames