3 # hostnamectl(1) completion -*- shell-script -*-
5 # This file is part of systemd.
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
9 # systemd is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU Lesser General Public License as published by
11 # the Free Software Foundation; either version 2.1 of the License, or
12 # (at your option) any later version.
14 # systemd is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public License
20 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 (( $+functions[_busctl_command] )) || _busctl_command()
27 "monitor:Show bus traffic"
29 if (( CURRENT == 1 )); then
30 _describe -t commands 'busctl command' _busctl_cmds || compadd "$@"
32 local curcontext="$curcontext"
33 cmd="${${_busctl_cmds[(r)$words[1]:*]%%:*}}"
34 if (( $+functions[_busctl_$cmd] )); then
37 _message "no more options"
43 {-h,--help}'[Prints a short help text and exits.]' \
44 '--version[Prints a short version string and exits.]' \
45 '--no-pager[Do not pipe output into a pager]' \
46 '--no-legend[Do not show the headers and footers]' \
47 '--system[Connect to system manager]' \
48 '--user[Connect to user service manager]' \
49 {-H+,--host=}'[Operate on remote host]:userathost:_sd_hosts_or_user_at_host' \
50 {-M+,--machine=}'[Operate on local container]:machines:_sd_machines' \
51 '--address=[Connect to the bus specified by address]:address' \
52 '--show-machine[Show machine ID column in list]' \
53 '--unique[Only show unique names]' \
54 '--acquired[Only show acquired names]' \
55 '--activatable[Only show activatable names]' \
56 '--match=[Only show matching messages]:match' \
57 '*::busctl command:_busctl_command'