-
Notifications
You must be signed in to change notification settings - Fork 5
/
_lxd
47 lines (39 loc) · 1.04 KB
/
_lxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#compdef lxd
# _lxd
#
# Copyright (c) 2020 endaaman
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
_lxd() {
_arguments -C \
'1: :__lxd_commands' \
'*: :__lxd_global_flags'
}
__lxd_global_flags() {
local -a _c
_c=(
{-d,--debug}':Show all debug messages'
'--group:The group of users that will be allowed to talk to LXD'
{-h,--help}':Print help'
'--logfile:Path to the log file'
'--syslog:Log to syslog'
'--trace:Log tracing targets'
)
_describe -o -t global_options 'Flags' _c
}
__lxd_commands() {
local -a _c
_c=(
'activateifneeded:Check if LXD should be started'
'cluster:Low-level cluster administration commands'
'help:Help about any command'
'import:Import existing containers'
'init:Configure the LXD daemon'
'shutdown:Tell LXD to shutdown all containers and exit'
'version:Show the server version'
'waitready:Wait for LXD to be ready to process requests'
)
_describe -t commands 'Commands' _c
}
compdef _lxd lxd