bosh_cli 1.2341.0 → 1.2347.0

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.
@@ -14,13 +14,7 @@ module Bosh::Cli::Command
14
14
  err("Cannot show help message, command runner is not instantiated")
15
15
  end
16
16
 
17
- keywords = "all" if keywords.empty? && options[:all]
18
-
19
- if keywords.empty?
20
- generic_help
21
- else
22
- keyword_help(keywords)
23
- end
17
+ keyword_help(keywords)
24
18
  end
25
19
 
26
20
  private
@@ -31,26 +25,6 @@ module Bosh::Cli::Command
31
25
  |
32
26
  |#{runner.usage}
33
27
  |
34
- |The most commonly used BOSH commands are:
35
- | target Point CLI to BOSH Director
36
- | deployment Set deployment
37
- | status Current status
38
- | create release Create new release
39
- | upload release Upload release
40
- | upload stemcell Upload stemcell image
41
- | deploy Perform deployment
42
- | task <task_id> Track task / show task log
43
- | tasks List running tasks
44
- | tasks recent List recent tasks
45
- | cloudcheck Find and resolve deployment problems
46
- | deployments List deployments
47
- | releases List releases
48
- | start,restart,recreate,stop Job management
49
- | add blob Add large binary file to release
50
- |
51
- |You can run 'bosh help <keywords...>' to see different commands,
52
- |i.e. 'bosh help release', 'bosh help cloudcheck'.
53
- |Or run 'bosh help --all' to see all available BOSH commands
54
28
  HELP
55
29
 
56
30
  say message
@@ -60,7 +34,9 @@ module Bosh::Cli::Command
60
34
  def keyword_help(keywords)
61
35
  matches = Bosh::Cli::Config.commands.values
62
36
 
63
- if keywords == "all"
37
+ if keywords.empty?
38
+ generic_help
39
+
64
40
  good_matches = matches.sort { |a, b| a.usage <=> b.usage }
65
41
  else
66
42
  good_matches = []
@@ -145,6 +145,9 @@ module Bosh::Cli
145
145
  opts.on("-d", "--deployment FILE", "Override deployment") do |file|
146
146
  @options[:deployment] = file
147
147
  end
148
+ opts.on("-h", "--help", "here you go") do
149
+ @args << 'help'
150
+ end
148
151
 
149
152
  @args = @option_parser.order!(@args)
150
153
  end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Cli
3
- VERSION = '1.2341.0'
3
+ VERSION = '1.2347.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2341.0
4
+ version: 1.2347.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.2341.0
21
+ version: 1.2347.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.2341.0
29
+ version: 1.2347.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: json_pure
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +114,7 @@ dependencies:
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 1.2341.0
117
+ version: 1.2347.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +122,7 @@ dependencies:
122
122
  requirements:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
- version: 1.2341.0
125
+ version: 1.2347.0
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: net-ssh
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -269,7 +269,7 @@ dependencies:
269
269
  version: '0'
270
270
  description: ! 'BOSH CLI
271
271
 
272
- 27ff41'
272
+ 20a034'
273
273
  email: support@cloudfoundry.com
274
274
  executables:
275
275
  - bosh
@@ -380,7 +380,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
380
380
  version: '0'
381
381
  segments:
382
382
  - 0
383
- hash: 4241144139980452800
383
+ hash: 4411863968370355058
384
384
  requirements: []
385
385
  rubyforge_project:
386
386
  rubygems_version: 1.8.23