cloudstack-cli 0.8.1 → 0.8.2
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 +3 -3
- 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: 68fb71d1bfede43480ee1793d458ec2662a982f1
|
4
|
+
data.tar.gz: 30858d6e9edbf856d37dbb47136654f29cab31c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c616d691a056d8e6bb4df76f730ec7db509cb2321a28b56bd0b46c1b198406c42654babecda24b378ebdb2653f8419af067c8a98ef055d1efb5c4b62530b23e0
|
7
|
+
data.tar.gz: 0beb9bf4fc7855a8e49373987f322bf696c3828142d62de2e0756d4ee0028481c7cd64715f216f62d3b3a9587044240f5a9a8c247061193869a111fff6ef1707
|
data/completions/cs.bash
CHANGED
@@ -26,15 +26,15 @@ _cs() {
|
|
26
26
|
if [[ "${words[@]}" == *help* ]]; then
|
27
27
|
COMPREPLY=( $(compgen -W '' -- "$word") )
|
28
28
|
# search for subcommand
|
29
|
-
elif [[ "$word" != -* ]] && [
|
29
|
+
elif [[ "$word" != -* ]] && [ "$COMP_CWORD" -eq 2 ]; then
|
30
30
|
local cp1=$(echo ${words[@]} | cut -d ' ' -f1-2)
|
31
31
|
COMPREPLY=( $(compgen -W "$($cp1 help | grep cs | cut -d ' ' -f5)" -- "$word") )
|
32
32
|
# list options for the subcommand
|
33
|
-
elif [[ "$word" =~ -* ]] && [ $
|
33
|
+
elif [[ "$word" =~ -* ]] && [ "$COMP_CWORD" -gt 2 ]; then
|
34
34
|
local cp1=$(echo ${words[@]} | cut -d ' ' -f1-2)
|
35
35
|
local cp2=$(echo ${words[@]} | cut -d ' ' -f3)
|
36
36
|
local cp3=$($cp1 help $cp2 2>/dev/null)
|
37
|
-
COMPREPLY=( $(compgen -W "$(echo $cp3 | awk 'NR>1{print $1}' RS=[ FS='\=')" -- "$word") )
|
37
|
+
COMPREPLY=( $(compgen -W "$(echo $cp3 | awk 'NR>1{print $1}' RS=[ FS='\=') 2>/dev/null" -- "$word") )
|
38
38
|
fi
|
39
39
|
fi
|
40
40
|
}
|