hammer_cli_console 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/hammer_cli_console.gemspec +1 -1
- data/lib/hammer_cli_console.rb +4 -0
- data/lib/hammer_cli_console/commandtree.rb +24 -0
- data/lib/hammer_cli_console/fullhelp.rb +1 -1
- data/lib/hammer_cli_console/version.rb +1 -1
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NTM5ODUwODhjNDkxMjRjMDhmNjNlNGE3MTlhMmUxN2VmNDYyZTU3Ng==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 34de9093fb21c9a4f36e1dd58af7dab0a28b5b22
|
4
|
+
data.tar.gz: 285636ba5fdf97f734b7880844bb1be17820d2fc
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
OWI3MmFiMzdjYzUwNWZkZDZhNzc4NDg5NDY2MGI0YzUzOWJiZGZhMDI0ODgz
|
11
|
-
OGRlODc5OTcwYWNjYTYyMTMyZWRjZTY2MzU0ZDhmNTQyYzIwZDE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NzYxOTNkODc0Y2ExYTI3ZGY4ZDEyNThhNzkzYzQxODliNmI4MjlhNWUyODY0
|
14
|
-
ZDU4YzBlMzYwYTRiZDJhOGY3N2UyMmJlMTA3MWRlZjY1NTZmMjQ2Yzk0MTEz
|
15
|
-
OTE1ODNiNzNlMDUwYzY5NTRlNTc2OTFlNDY1NzdiZTUzNTdhOGM=
|
6
|
+
metadata.gz: bcf1a971c75c63634239d05b8a8cb2ef39f0c1eababa068e2ef1ea6c803a5d718dba84a11c4f85c42922adc5569daa08acc4b4fc2b64127ff278097c07dd9a16
|
7
|
+
data.tar.gz: 45572be61bbca5b57b9b9c00a982898c3b3223168552e7b1ce1144ddd44ee8f5de14c04c319ce79b4515e577326892836381de0fb13a6c13a35a927525910970
|
data/hammer_cli_console.gemspec
CHANGED
data/lib/hammer_cli_console.rb
CHANGED
@@ -10,4 +10,8 @@ module HammerCLIConsole
|
|
10
10
|
_("Recursive help of all hammer commands"),
|
11
11
|
"HammerCLIConsole::FullHelpCommand",
|
12
12
|
"hammer_cli_console/fullhelp")
|
13
|
+
HammerCLI::MainCommand.lazy_subcommand("command-tree",
|
14
|
+
_("Display the hammer command tree"),
|
15
|
+
"HammerCLIConsole::CommandTreeCommand",
|
16
|
+
"hammer_cli_console/commandtree")
|
13
17
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module HammerCLIConsole
|
2
|
+
|
3
|
+
class CommandTreeCommand < HammerCLI::AbstractCommand
|
4
|
+
|
5
|
+
def execute
|
6
|
+
print_tree_recursive
|
7
|
+
|
8
|
+
HammerCLI::EX_OK
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def print_tree_recursive(command_name = 'hammer', command = HammerCLI::MainCommand)
|
14
|
+
command.recognised_subcommands.each do |subcommand_container|
|
15
|
+
subcommand_class = subcommand_container.subcommand_class
|
16
|
+
name = "#{command_name} > #{subcommand_container.names.first}"
|
17
|
+
puts name
|
18
|
+
print_tree_recursive(name, subcommand_class)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Price
|
@@ -9,34 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hammer_cli
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 0.5.1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: 0.5.1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pry
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
description: Hammer-CLI-Console is a plugin to hammer which provides a REPL feature
|
@@ -47,13 +47,14 @@ executables: []
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
-
- .gitignore
|
50
|
+
- ".gitignore"
|
51
51
|
- Gemfile
|
52
52
|
- LICENSE
|
53
53
|
- README.md
|
54
54
|
- Rakefile
|
55
55
|
- hammer_cli_console.gemspec
|
56
56
|
- lib/hammer_cli_console.rb
|
57
|
+
- lib/hammer_cli_console/commandtree.rb
|
57
58
|
- lib/hammer_cli_console/console.rb
|
58
59
|
- lib/hammer_cli_console/fullhelp.rb
|
59
60
|
- lib/hammer_cli_console/version.rb
|
@@ -67,17 +68,17 @@ require_paths:
|
|
67
68
|
- lib
|
68
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
70
|
requirements:
|
70
|
-
- -
|
71
|
+
- - ">="
|
71
72
|
- !ruby/object:Gem::Version
|
72
73
|
version: '0'
|
73
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
75
|
requirements:
|
75
|
-
- -
|
76
|
+
- - ">="
|
76
77
|
- !ruby/object:Gem::Version
|
77
78
|
version: '0'
|
78
79
|
requirements: []
|
79
80
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
81
|
+
rubygems_version: 2.4.6
|
81
82
|
signing_key:
|
82
83
|
specification_version: 4
|
83
84
|
summary: Debugging support for Hammer.
|