cloudstack-cli 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da9fb590abf9e1b51dca08f585f3ef45a01afb7c
4
- data.tar.gz: 2dfbf8591fce28836006ae7da42cd0f8646d75d7
3
+ metadata.gz: 68fb71d1bfede43480ee1793d458ec2662a982f1
4
+ data.tar.gz: 30858d6e9edbf856d37dbb47136654f29cab31c2
5
5
  SHA512:
6
- metadata.gz: 8d1ec79811b8c04409506d410cf1dc23f52f1698f409459545057f1de799633fac38e703481a88c02f81854ec9b3409f18375b52753764f9baaeb6c685a3a862
7
- data.tar.gz: 0c00fb692b6ede12f4ab4fb657b522b8c17f50485828bdd95895848ef9a3b6ded98986fb6a6d2430480fa4502ca0d90aecce51828956c03a056c6ad751357db0
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" != -* ]] && [ -n "$word" ]; then
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" =~ -* ]] && [ $(echo ${words[@]} | wc -w) -gt 2 ]; then
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
  }
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm