cloudstack-cli 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/completions/cs.bash +7 -6
- data/lib/cloudstack-cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93bcebb068be81852b7883095fe48c918d3bfd9d
|
4
|
+
data.tar.gz: 8cb16f8f2dc45a1197f03ff7a1551d212ec5686a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeec46a44f6e9fe9e177dc1fd40ff7dcee99c0391a9857e795aa983c8b92e6ef765238bcebeaa83e3b506a3267b6ef027531a269e0db545a86d6aefa3bff2113
|
7
|
+
data.tar.gz: 12ba20b5201b6ee0de54407773c4104a23d0c1dde22aeb433d0c6dcbec4262958cab418a2a3594b85f108e5c74a5d9598aff528792fb5261c9c1e95a94bf98e4
|
data/completions/cs.bash
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# cloudstack-cli
|
4
4
|
# https://github.com/niwo/cloudstack-cli
|
5
5
|
#
|
6
|
-
# Copyright (c)
|
6
|
+
# Copyright (c) 2015 Nik Wolfgramm
|
7
7
|
# Licensed under the MIT license.
|
8
8
|
# https://raw.github.com/niwo/cloudstack-cli/master/LICENSE.txt
|
9
9
|
|
@@ -12,14 +12,14 @@
|
|
12
12
|
# To enable bash <tab> completion for cloudstack-cli, add the following line (minus the
|
13
13
|
# leading #, which is the bash comment character) to your ~/.bash_profile file (use ~/.bashrc on Ubuntu):
|
14
14
|
#
|
15
|
-
# eval "$(
|
15
|
+
# eval "$(cloudstack-cli completion --shell=bash)"
|
16
16
|
|
17
|
-
|
17
|
+
_cloudstack_cli() {
|
18
18
|
COMPREPLY=()
|
19
19
|
local word="${COMP_WORDS[COMP_CWORD]}"
|
20
20
|
# list available base commands
|
21
21
|
if [ "$COMP_CWORD" -eq 1 ]; then
|
22
|
-
COMPREPLY=( $(compgen -W "$(
|
22
|
+
COMPREPLY=( $(compgen -W "$(cloudstack-cli help | grep cloudstack-cli | cut -d ' ' -f4)" -- "$word") )
|
23
23
|
else
|
24
24
|
local words=("${COMP_WORDS[@]}")
|
25
25
|
# ignore commands which contain 'help'
|
@@ -28,7 +28,7 @@ _cs() {
|
|
28
28
|
# search for subcommand
|
29
29
|
elif [[ "$word" != -* ]] && [ "$COMP_CWORD" -eq 2 ]; then
|
30
30
|
local cp1=$(echo ${words[@]} | cut -d ' ' -f1-2)
|
31
|
-
COMPREPLY=( $(compgen -W "$($cp1 help | grep
|
31
|
+
COMPREPLY=( $(compgen -W "$($cp1 help | grep cloudstack-cli | cut -d ' ' -f5)" -- "$word") )
|
32
32
|
# list options for the subcommand
|
33
33
|
elif [[ "$word" =~ -* ]] && [ "$COMP_CWORD" -gt 2 ]; then
|
34
34
|
local cp1=$(echo ${words[@]} | cut -d ' ' -f1-2)
|
@@ -39,4 +39,5 @@ _cs() {
|
|
39
39
|
fi
|
40
40
|
}
|
41
41
|
|
42
|
-
complete -F
|
42
|
+
complete -F _cloudstack_cli cs
|
43
|
+
complete -F _cloudstack_cli cloudstack-cli
|