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 +4 -4
- data/lib/shelldon-essentials/version.rb +2 -2
- data/lib/table-help-config.rb +13 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67a69417b2620a632b83683d16ada0beb05d6332
|
4
|
+
data.tar.gz: 6f08ffe297f3f401f3aedb19aefdee6ade309a91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c3464d5874e9610e7f1a36059a0aad798aeff4050c3fd3e908addc7db25a3c7820be768c43bed5a067fbec94ac9769ecacf14bc3467d794cbc84d8e8a8f2cbe
|
7
|
+
data.tar.gz: 6c6c5b864207a3e9d74b0fae08214fc3ead62a998a1655e68d6d8a7a6f9a3b662edbc4542cc1e614f8067bd67318f104dfac7d40c92b7bf28ddb13a0e477cc98
|
@@ -1,3 +1,3 @@
|
|
1
1
|
module ShelldonEssentials
|
2
|
-
VERSION = '0.1.
|
3
|
-
end
|
2
|
+
VERSION = '0.1.1'
|
3
|
+
end
|
data/lib/table-help-config.rb
CHANGED
@@ -12,14 +12,20 @@ Shelldon.module :table_help_config do
|
|
12
12
|
# Commands
|
13
13
|
command :help do
|
14
14
|
action do |args|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
21
|
-
|
22
|
-
|
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.
|
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-
|
11
|
+
date: 2016-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shelldon
|