aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-12-03 12:52:59 +0100
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-12-03 12:52:59 +0100
commit9f7334deef85c4e6e2bf78fcd126c15a13d63b9b (patch)
treec7ca4c49c5aa2f51687850da40125b465bde56f6 /share
parent3dbefd08ad0c306110083737f5eb7f8b938da2e3 (diff)
Add completion for systemd-analyze
Diffstat (limited to 'share')
-rw-r--r--share/completions/systemd-analyze.fish20
1 files changed, 20 insertions, 0 deletions
diff --git a/share/completions/systemd-analyze.fish b/share/completions/systemd-analyze.fish
new file mode 100644
index 00000000..52448dcc
--- /dev/null
+++ b/share/completions/systemd-analyze.fish
@@ -0,0 +1,20 @@
+complete -c systemd-analyze -x
+complete -f -c systemd-analzye -s H -l host= -d 'Execute the operation on a remote host' -a "(__fish_print_hostnames)"
+complete -x -c systemd-analzye -s M -l machine= -d 'Execute operation on a VM or container' -a "(__fish_systemd_machines)"
+complete -f -c systemd-analzye -s h -l help -d 'Print a short help and exit'
+complete -f -c systemd-analzye -l version -d 'Print a short version and exit'
+complete -f -c systemd-analzye -l no-pager -d 'Do not pipe output into a pager'
+complete -f -c systemd-analzye -l user -d 'Talk to the service manager of the calling user' -n "not __fish_contains_opt system user"
+complete -f -c systemd-analzye -l system -d 'Talk to the service manager of the system.' -n "not __fish_contains_opt system user"
+
+set -l commands time blame critical-chain plot dot set-log-level set-log-target dump verify
+
+complete -c systemd-analyze -n "not __fish_seen_subcommand_from $commands" -a time -d "Print time spent in the kernel" -f
+complete -c systemd-analyze -n "not __fish_seen_subcommand_from $commands" -a blame -d "Print list of running units ordered by time to init" -f
+complete -c systemd-analyze -n "not __fish_seen_subcommand_from $commands" -a critical-chain -d "Print a tree of the time critical chain of units" -f
+complete -c systemd-analyze -n "not __fish_seen_subcommand_from $commands" -a plot -d "Output SVG graphic showing service initialization" -f
+complete -c systemd-analyze -n "not __fish_seen_subcommand_from $commands" -a dot -d "Output dependency graph in dot(1) format" -f
+complete -c systemd-analyze -n "not __fish_seen_subcommand_from $commands" -a set-log-level -d "Set logging threshold for manager" -f
+complete -c systemd-analyze -n "not __fish_seen_subcommand_from $commands" -a set-log-target -d "Set logging target for manager" -f
+complete -c systemd-analyze -n "not __fish_seen_subcommand_from $commands" -a dump -d "Output state serialization of service manager" -f
+complete -c systemd-analyze -n "not __fish_seen_subcommand_from $commands" -a verify -d "Check unit files for correctness"