shelldon-essentials 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8da8be39172d6d60035aa783800b1ae8750096a
4
- data.tar.gz: 6db7580bbc30be61bfd04de81927fb4996ffa244
3
+ metadata.gz: 67a69417b2620a632b83683d16ada0beb05d6332
4
+ data.tar.gz: 6f08ffe297f3f401f3aedb19aefdee6ade309a91
5
5
  SHA512:
6
- metadata.gz: d9eb94e1fa6ce1adc9426a4cb99996b21e418d3e49328aef1404671dc66ad9bfd690f58af40c8dfa7ac974faeccd48ced89568ea672e3299d7e150214fa00b4c
7
- data.tar.gz: 2d03720af53833b3f52bd27da8c24bfc7370b3a7644a385c0f084cb54430836b781d0bb9ec0cec2dbf6c2644fd05eeb74efaa5b5afa2e237abf58387f70e74a2
6
+ metadata.gz: 6c3464d5874e9610e7f1a36059a0aad798aeff4050c3fd3e908addc7db25a3c7820be768c43bed5a067fbec94ac9769ecacf14bc3467d794cbc84d8e8a8f2cbe
7
+ data.tar.gz: 6c6c5b864207a3e9d74b0fae08214fc3ead62a998a1655e68d6d8a7a6f9a3b662edbc4542cc1e614f8067bd67318f104dfac7d40c92b7bf28ddb13a0e477cc98
@@ -1,3 +1,3 @@
1
1
  module ShelldonEssentials
2
- VERSION = '0.1.0'
3
- end
2
+ VERSION = '0.1.1'
3
+ end
@@ -12,14 +12,20 @@ Shelldon.module :table_help_config do
12
12
  # Commands
13
13
  command :help do
14
14
  action do |args|
15
- if args.empty?
16
- header = ["Name", "Aliases", "Help"]
17
- else
18
- header = ["Name", "Help", "Usage", "Examples"]
15
+ header = ["Name", "Aliases", "Help"]
16
+ rows = command_list.help(args)
17
+
18
+ unless args.empty?
19
+ rows = command_list.help(args)
20
+ puts "\n'#{rows[0][0]}': #{rows[0][1]}"
21
+ rows = rows[1]
22
+ puts "Subcommands:" unless rows.nil?
19
23
  end
20
- ShelldonTable.print(
21
- header: header,
22
- rows: command_list.help(args))
24
+
25
+ ShelldonTable.print(
26
+ header: header,
27
+ rows: rows
28
+ )
23
29
  end
24
30
  help 'Show help. Optionally specify specific command for more information.'
25
31
  usage 'help [cmd]'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shelldon-essentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Boynton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-01 00:00:00.000000000 Z
11
+ date: 2016-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shelldon