diff options
author | Adrian Szyndela <adrian.s@samsung.com> | 2020-03-26 16:03:37 +0100 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2020-03-26 16:03:37 +0100 |
commit | 0dbfabccd0e6d8fecc58a19bb5b4db2842e88364 (patch) | |
tree | aaac28e9f4d8588f149f12f8a2f70e866e26ed6c /shell-completion | |
parent | 6926d6fb85cdf9148d949c6e29fad3651c2efb4b (diff) | |
parent | 738ab7502afb7663d9aacdd73e79025aa7cd0a9b (diff) | |
download | systemd-0dbfabccd0e6d8fecc58a19bb5b4db2842e88364.tar.gz systemd-0dbfabccd0e6d8fecc58a19bb5b4db2842e88364.tar.bz2 systemd-0dbfabccd0e6d8fecc58a19bb5b4db2842e88364.zip |
Merge v238 into tizen
systemd 238
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/systemd-analyze | 10 | ||||
-rw-r--r-- | shell-completion/zsh/_systemd-analyze | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index fb30487613..a66ddccb02 100644 --- a/shell-completion/bash/systemd-analyze +++ b/shell-completion/bash/systemd-analyze @@ -36,13 +36,13 @@ _systemd_analyze() { local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} local -A OPTS=( - [STANDALONE]='-h --help --version --system --user --order --require --no-pager + [STANDALONE]='-h --help --version --system --user --global --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 calendar' + [STANDALONE]='time blame plot dump unit-paths calendar' [CRITICAL_CHAIN]='critical-chain' [DOT]='dot' [LOG_LEVEL]='log-level' @@ -85,7 +85,7 @@ _systemd_analyze() { elif __contains_word "$verb" ${VERBS[STANDALONE]}; then if [[ $cur = -* ]]; then - comps='--help --version --system --user' + comps='--help --version --system --user --global' fi elif __contains_word "$verb" ${VERBS[CRITICAL_CHAIN]}; then @@ -95,7 +95,7 @@ _systemd_analyze() { elif __contains_word "$verb" ${VERBS[DOT]}; then if [[ $cur = -* ]]; then - comps='--help --version --system --user --from-pattern --to-pattern --order --require' + comps='--help --version --system --user --global --from-pattern --to-pattern --order --require' fi elif __contains_word "$verb" ${VERBS[LOG_LEVEL]}; then @@ -119,7 +119,7 @@ _systemd_analyze() { elif __contains_word "$verb" ${VERBS[VERIFY]}; then if [[ $cur = -* ]]; then - comps='--help --version --system --user --man=no --generators=yes' + comps='--help --version --system --user --global --man=no --generators=yes' else comps=$( compgen -A file -- "$cur" ) compopt -o filenames diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze index ae13f4bbde..bccdb951f1 100644 --- a/shell-completion/zsh/_systemd-analyze +++ b/shell-completion/zsh/_systemd-analyze @@ -33,6 +33,7 @@ _systemd_analyze_command(){ 'plot:Output SVG graphic showing service initialization' 'dot:Dump dependency graph (in dot(1) format)' 'dump:Dump server status' + 'unit-paths':List unit load paths' 'log-level:Get/set systemd log threshold' 'log-target:Get/set systemd log target' 'service-watchdogs:Get/set service watchdog status' @@ -62,6 +63,7 @@ _arguments \ '--version[Show package version]' \ '--system[Operate on system systemd instance]' \ '--user[Operate on user systemd instance]' \ + '--global[Show global user instance config]' \ '--no-pager[Do not pipe output into a pager]' \ '--man=[Do (not) check for existence of man pages]:boolean:(1 0)' \ '--order[When generating graph for dot, show only order]' \ |