gli 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/features/gli_executable.feature +0 -2
- data/features/step_definitions/todo_steps.rb +11 -0
- data/features/support/env.rb +4 -0
- data/features/todo.feature +94 -2
- data/gli.gemspec +1 -0
- data/gli.rdoc +11 -18
- data/lib/gli/app.rb +34 -3
- data/lib/gli/app_support.rb +34 -4
- data/lib/gli/command.rb +8 -0
- data/lib/gli/command_support.rb +5 -0
- data/lib/gli/commands/doc.rb +22 -8
- data/lib/gli/commands/help.rb +18 -2
- data/lib/gli/commands/help_modules/arg_name_formatter.rb +20 -0
- data/lib/gli/commands/help_modules/command_help_format.rb +9 -18
- data/lib/gli/commands/help_modules/global_help_format.rb +14 -5
- data/lib/gli/commands/help_modules/list_formatter.rb +3 -2
- data/lib/gli/commands/help_modules/no_wrapping_wrapper.rb +18 -0
- data/lib/gli/commands/help_modules/options_formatter.rb +4 -3
- data/lib/gli/commands/help_modules/tty_only_wrapper.rb +23 -0
- data/lib/gli/commands/rdoc_document_listener.rb +13 -9
- data/lib/gli/dsl.rb +2 -0
- data/lib/gli/flag.rb +20 -8
- data/lib/gli/gli_option_parser.rb +19 -0
- data/lib/gli/option_parser_factory.rb +3 -3
- data/lib/gli/terminal.rb +1 -1
- data/lib/gli/version.rb +1 -1
- data/test/apps/todo/bin/todo +4 -0
- data/test/tc_doc.rb +6 -0
- data/test/tc_flag.rb +16 -8
- data/test/test_helper.rb +2 -0
- metadata +258 -364
data/lib/gli/version.rb
CHANGED
data/test/apps/todo/bin/todo
CHANGED
@@ -14,7 +14,11 @@ else
|
|
14
14
|
include GLI::App
|
15
15
|
end
|
16
16
|
|
17
|
+
sort_help (ENV['TODO_SORT_HELP'] || 'alpha').to_sym
|
18
|
+
wrap_help_text (ENV['TODO_WRAP_HELP_TEXT'] || 'to_terminal').to_sym
|
19
|
+
|
17
20
|
program_desc 'Manages tasks'
|
21
|
+
program_long_desc "A test program that has a sophisticated UI that can be used to exercise a lot of GLI's power"
|
18
22
|
|
19
23
|
config_file "gli_test_todo.rc"
|
20
24
|
|
data/test/tc_doc.rb
CHANGED
@@ -56,6 +56,10 @@ class TC_testDoc < Clean::Test::TestCase
|
|
56
56
|
@stringio << desc << "\n"
|
57
57
|
end
|
58
58
|
|
59
|
+
def program_long_desc(desc)
|
60
|
+
@stringio << desc << "\n"
|
61
|
+
end
|
62
|
+
|
59
63
|
def version(version)
|
60
64
|
@stringio << version << "\n"
|
61
65
|
end
|
@@ -158,6 +162,7 @@ private
|
|
158
162
|
@app = TestApp.new
|
159
163
|
@app.instance_eval do
|
160
164
|
program_desc "program desc"
|
165
|
+
program_long_desc "program long desc"
|
161
166
|
version "1.3.4"
|
162
167
|
|
163
168
|
TC_testDoc.flag_with_everything_specified(self)
|
@@ -227,6 +232,7 @@ private
|
|
227
232
|
@string =<<EOS
|
228
233
|
BEGIN
|
229
234
|
program desc
|
235
|
+
program long desc
|
230
236
|
1.3.4
|
231
237
|
flag: F
|
232
238
|
aliases: flag2
|
data/test/tc_flag.rb
CHANGED
@@ -27,28 +27,36 @@ class TC_testFlag < Clean::Test::TestCase
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
30
|
+
def test_flag_can_mask_its_value
|
31
|
+
Given flag_with_names(:password, :mask => true)
|
32
|
+
Then attributes_should_be_set(:safe_default_value => "********")
|
33
|
+
end
|
34
|
+
|
35
|
+
def flag_with_names(names,options = {})
|
31
36
|
lambda do
|
32
37
|
@options = {
|
33
38
|
:desc => 'Filename',
|
34
39
|
:long_desc => 'The Filename',
|
35
40
|
:arg_name => 'file',
|
36
41
|
:default_value => '~/.blah.rc',
|
42
|
+
:safe_default_value => '~/.blah.rc',
|
37
43
|
:must_match => /foobar/,
|
38
44
|
:type => Float,
|
39
|
-
}
|
45
|
+
}.merge(options)
|
40
46
|
@flag = GLI::Flag.new(names,@options)
|
41
47
|
@cli_option = @flag
|
42
48
|
end
|
43
49
|
end
|
44
50
|
|
45
|
-
def attributes_should_be_set
|
51
|
+
def attributes_should_be_set(override={})
|
46
52
|
lambda {
|
47
|
-
|
48
|
-
assert_equal(
|
49
|
-
assert_equal(
|
50
|
-
assert_equal(
|
51
|
-
assert_equal(
|
53
|
+
expected = @options.merge(override)
|
54
|
+
assert_equal(expected[:desc],@flag.description)
|
55
|
+
assert_equal(expected[:long_desc],@flag.long_description)
|
56
|
+
assert_equal(expected[:default_value],@flag.default_value)
|
57
|
+
assert_equal(expected[:safe_default_value],@flag.safe_default_value)
|
58
|
+
assert_equal(expected[:must_match],@flag.must_match)
|
59
|
+
assert_equal(expected[:type],@flag.type)
|
52
60
|
assert(@flag.usage != nil)
|
53
61
|
}
|
54
62
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,427 +1,321 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gli
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 2.2.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- David Copeland
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-09-19 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rake
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 0.9.2.2
|
22
|
-
type: :development
|
23
22
|
prerelease: false
|
24
|
-
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
|
-
requirements:
|
25
|
+
requirements:
|
27
26
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 11
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 9
|
32
|
+
- 2
|
33
|
+
- 2
|
29
34
|
version: 0.9.2.2
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: rdoc
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '3.11'
|
38
35
|
type: :development
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rdoc
|
39
39
|
prerelease: false
|
40
|
-
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
|
-
requirements:
|
42
|
+
requirements:
|
43
43
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 2.1.0
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 17
|
46
|
+
segments:
|
47
|
+
- 3
|
48
|
+
- 11
|
49
|
+
version: "3.11"
|
54
50
|
type: :development
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: roodi
|
55
54
|
prerelease: false
|
56
|
-
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
56
|
none: false
|
58
|
-
requirements:
|
57
|
+
requirements:
|
59
58
|
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 11
|
61
|
+
segments:
|
62
|
+
- 2
|
63
|
+
- 1
|
64
|
+
- 0
|
61
65
|
version: 2.1.0
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: reek
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
66
|
type: :development
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: reek
|
71
70
|
prerelease: false
|
72
|
-
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
72
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ~>
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 1.1.1
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
86
80
|
type: :development
|
81
|
+
version_requirements: *id004
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rainbow
|
87
84
|
prerelease: false
|
88
|
-
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
86
|
none: false
|
90
|
-
requirements:
|
87
|
+
requirements:
|
91
88
|
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 17
|
91
|
+
segments:
|
92
|
+
- 1
|
93
|
+
- 1
|
94
|
+
- 1
|
93
95
|
version: 1.1.1
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: clean_test
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
96
|
type: :development
|
97
|
+
version_requirements: *id005
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: clean_test
|
103
100
|
prerelease: false
|
104
|
-
|
101
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
105
102
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
version: "0"
|
118
110
|
type: :development
|
111
|
+
version_requirements: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: aruba
|
119
114
|
prerelease: false
|
120
|
-
|
115
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
121
116
|
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
|
126
|
-
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
hash: 3
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
version: "0"
|
124
|
+
type: :development
|
125
|
+
version_requirements: *id007
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
127
|
name: sdoc
|
128
|
-
|
128
|
+
prerelease: false
|
129
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
129
130
|
none: false
|
130
|
-
requirements:
|
131
|
-
- -
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
hash: 3
|
135
|
+
segments:
|
136
|
+
- 0
|
137
|
+
version: "0"
|
134
138
|
type: :development
|
139
|
+
version_requirements: *id008
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: faker
|
135
142
|
prerelease: false
|
136
|
-
|
143
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
137
144
|
none: false
|
138
|
-
requirements:
|
139
|
-
- -
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
+
requirements:
|
146
|
+
- - "="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
hash: 23
|
149
|
+
segments:
|
150
|
+
- 1
|
151
|
+
- 0
|
152
|
+
- 0
|
153
|
+
version: 1.0.0
|
154
|
+
type: :development
|
155
|
+
version_requirements: *id009
|
156
|
+
description: Build command-suite CLI apps that are awesome. Bootstrap your app, add commands, options and documentation while maintaining a well-tested idiomatic command-line app
|
145
157
|
email: davidcopeland@naildrivin5.com
|
146
|
-
executables:
|
158
|
+
executables:
|
147
159
|
- gli
|
148
160
|
extensions: []
|
149
|
-
|
161
|
+
|
162
|
+
extra_rdoc_files:
|
163
|
+
- README.rdoc
|
164
|
+
- gli.rdoc
|
165
|
+
files:
|
166
|
+
- .gitignore
|
167
|
+
- .rvmrc
|
168
|
+
- .travis.yml
|
169
|
+
- Gemfile
|
170
|
+
- LICENSE.txt
|
171
|
+
- ObjectModel.graffle
|
150
172
|
- README.rdoc
|
173
|
+
- Rakefile
|
174
|
+
- bin/gli
|
175
|
+
- bin/report_on_rake_results
|
176
|
+
- bin/test_all_rubies.sh
|
177
|
+
- features/gli_executable.feature
|
178
|
+
- features/gli_init.feature
|
179
|
+
- features/step_definitions/gli_executable_steps.rb
|
180
|
+
- features/step_definitions/gli_init_steps.rb
|
181
|
+
- features/step_definitions/todo_steps.rb
|
182
|
+
- features/support/env.rb
|
183
|
+
- features/todo.feature
|
184
|
+
- gli.cheat
|
185
|
+
- gli.gemspec
|
151
186
|
- gli.rdoc
|
152
|
-
|
153
|
-
-
|
154
|
-
|
155
|
-
-
|
156
|
-
|
157
|
-
-
|
158
|
-
|
159
|
-
-
|
160
|
-
|
161
|
-
-
|
162
|
-
|
163
|
-
-
|
164
|
-
|
165
|
-
-
|
166
|
-
|
167
|
-
-
|
168
|
-
|
169
|
-
-
|
170
|
-
|
171
|
-
-
|
172
|
-
|
173
|
-
-
|
174
|
-
|
175
|
-
-
|
176
|
-
|
177
|
-
-
|
178
|
-
|
179
|
-
-
|
180
|
-
|
181
|
-
|
182
|
-
-
|
183
|
-
|
184
|
-
-
|
185
|
-
|
186
|
-
-
|
187
|
-
|
188
|
-
-
|
189
|
-
|
190
|
-
-
|
191
|
-
|
192
|
-
-
|
193
|
-
|
194
|
-
-
|
195
|
-
|
196
|
-
-
|
197
|
-
|
198
|
-
-
|
199
|
-
|
200
|
-
-
|
201
|
-
|
202
|
-
-
|
203
|
-
|
204
|
-
-
|
205
|
-
|
206
|
-
-
|
207
|
-
|
208
|
-
-
|
209
|
-
|
210
|
-
-
|
211
|
-
|
212
|
-
-
|
213
|
-
|
214
|
-
- !binary |-
|
215
|
-
bGliL2dsaS9jb21tYW5kcy9oZWxwLnJi
|
216
|
-
- !binary |-
|
217
|
-
bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvY29tbWFuZF9maW5kZXIu
|
218
|
-
cmI=
|
219
|
-
- !binary |-
|
220
|
-
bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvY29tbWFuZF9oZWxwX2Zv
|
221
|
-
cm1hdC5yYg==
|
222
|
-
- !binary |-
|
223
|
-
bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvZ2xvYmFsX2hlbHBfZm9y
|
224
|
-
bWF0LnJi
|
225
|
-
- !binary |-
|
226
|
-
bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvaGVscF9jb21wbGV0aW9u
|
227
|
-
X2Zvcm1hdC5yYg==
|
228
|
-
- !binary |-
|
229
|
-
bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvbGlzdF9mb3JtYXR0ZXIu
|
230
|
-
cmI=
|
231
|
-
- !binary |-
|
232
|
-
bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvb3B0aW9uc19mb3JtYXR0
|
233
|
-
ZXIucmI=
|
234
|
-
- !binary |-
|
235
|
-
bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvdGV4dF93cmFwcGVyLnJi
|
236
|
-
- !binary |-
|
237
|
-
bGliL2dsaS9jb21tYW5kcy9pbml0Y29uZmlnLnJi
|
238
|
-
- !binary |-
|
239
|
-
bGliL2dsaS9jb21tYW5kcy9yZG9jX2RvY3VtZW50X2xpc3RlbmVyLnJi
|
240
|
-
- !binary |-
|
241
|
-
bGliL2dsaS9jb21tYW5kcy9zY2FmZm9sZC5yYg==
|
242
|
-
- !binary |-
|
243
|
-
bGliL2dsaS9jb3B5X29wdGlvbnNfdG9fYWxpYXNlcy5yYg==
|
244
|
-
- !binary |-
|
245
|
-
bGliL2dsaS9kc2wucmI=
|
246
|
-
- !binary |-
|
247
|
-
bGliL2dsaS9leGNlcHRpb25zLnJi
|
248
|
-
- !binary |-
|
249
|
-
bGliL2dsaS9mbGFnLnJi
|
250
|
-
- !binary |-
|
251
|
-
bGliL2dsaS9nbGlfb3B0aW9uX3BhcnNlci5yYg==
|
252
|
-
- !binary |-
|
253
|
-
bGliL2dsaS9vcHRpb25fcGFyc2VyX2ZhY3RvcnkucmI=
|
254
|
-
- !binary |-
|
255
|
-
bGliL2dsaS9vcHRpb25zLnJi
|
256
|
-
- !binary |-
|
257
|
-
bGliL2dsaS9zd2l0Y2gucmI=
|
258
|
-
- !binary |-
|
259
|
-
bGliL2dsaS90ZXJtaW5hbC5yYg==
|
260
|
-
- !binary |-
|
261
|
-
bGliL2dsaS92ZXJzaW9uLnJi
|
262
|
-
- !binary |-
|
263
|
-
dGVzdC9hcHBzL1JFQURNRS5tZA==
|
264
|
-
- !binary |-
|
265
|
-
dGVzdC9hcHBzL3RvZG8vR2VtZmlsZQ==
|
266
|
-
- !binary |-
|
267
|
-
dGVzdC9hcHBzL3RvZG8vUkVBRE1FLnJkb2M=
|
268
|
-
- !binary |-
|
269
|
-
dGVzdC9hcHBzL3RvZG8vUmFrZWZpbGU=
|
270
|
-
- !binary |-
|
271
|
-
dGVzdC9hcHBzL3RvZG8vYmluL3RvZG8=
|
272
|
-
- !binary |-
|
273
|
-
dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvY3JlYXRlLnJi
|
274
|
-
- !binary |-
|
275
|
-
dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvbGlzdC5yYg==
|
276
|
-
- !binary |-
|
277
|
-
dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvbHMucmI=
|
278
|
-
- !binary |-
|
279
|
-
dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vdmVyc2lvbi5yYg==
|
280
|
-
- !binary |-
|
281
|
-
dGVzdC9hcHBzL3RvZG8vdGVzdC90Y19ub3RoaW5nLnJi
|
282
|
-
- !binary |-
|
283
|
-
dGVzdC9hcHBzL3RvZG8vdG9kby5nZW1zcGVj
|
284
|
-
- !binary |-
|
285
|
-
dGVzdC9hcHBzL3RvZG8vdG9kby5yZG9j
|
286
|
-
- !binary |-
|
287
|
-
dGVzdC9jb25maWcueWFtbA==
|
288
|
-
- !binary |-
|
289
|
-
dGVzdC9mYWtlX3N0ZF9vdXQucmI=
|
290
|
-
- !binary |-
|
291
|
-
dGVzdC9nbGkucmVlaw==
|
292
|
-
- !binary |-
|
293
|
-
dGVzdC9pbml0X3NpbXBsZWNvdi5yYg==
|
294
|
-
- !binary |-
|
295
|
-
dGVzdC9vcHRpb25fdGVzdF9oZWxwZXIucmI=
|
296
|
-
- !binary |-
|
297
|
-
dGVzdC9yb29kaS55YW1s
|
298
|
-
- !binary |-
|
299
|
-
dGVzdC90Y19jb21tYW5kLnJi
|
300
|
-
- !binary |-
|
301
|
-
dGVzdC90Y19jb21wb3VudF9jb21tYW5kLnJi
|
302
|
-
- !binary |-
|
303
|
-
dGVzdC90Y19kb2MucmI=
|
304
|
-
- !binary |-
|
305
|
-
dGVzdC90Y19mbGFnLnJi
|
306
|
-
- !binary |-
|
307
|
-
dGVzdC90Y19nbGkucmI=
|
308
|
-
- !binary |-
|
309
|
-
dGVzdC90Y19oZWxwLnJi
|
310
|
-
- !binary |-
|
311
|
-
dGVzdC90Y19vcHRpb25zLnJi
|
312
|
-
- !binary |-
|
313
|
-
dGVzdC90Y19zdWJjb21tYW5kcy5yYg==
|
314
|
-
- !binary |-
|
315
|
-
dGVzdC90Y19zd2l0Y2gucmI=
|
316
|
-
- !binary |-
|
317
|
-
dGVzdC90Y190ZXJtaW5hbC5yYg==
|
318
|
-
- !binary |-
|
319
|
-
dGVzdC90ZXN0X2hlbHBlci5yYg==
|
187
|
+
- lib/gli.rb
|
188
|
+
- lib/gli/app.rb
|
189
|
+
- lib/gli/app_support.rb
|
190
|
+
- lib/gli/command.rb
|
191
|
+
- lib/gli/command_line_option.rb
|
192
|
+
- lib/gli/command_line_token.rb
|
193
|
+
- lib/gli/command_support.rb
|
194
|
+
- lib/gli/commands/compound_command.rb
|
195
|
+
- lib/gli/commands/doc.rb
|
196
|
+
- lib/gli/commands/help.rb
|
197
|
+
- lib/gli/commands/help_modules/arg_name_formatter.rb
|
198
|
+
- lib/gli/commands/help_modules/command_finder.rb
|
199
|
+
- lib/gli/commands/help_modules/command_help_format.rb
|
200
|
+
- lib/gli/commands/help_modules/global_help_format.rb
|
201
|
+
- lib/gli/commands/help_modules/help_completion_format.rb
|
202
|
+
- lib/gli/commands/help_modules/list_formatter.rb
|
203
|
+
- lib/gli/commands/help_modules/no_wrapping_wrapper.rb
|
204
|
+
- lib/gli/commands/help_modules/options_formatter.rb
|
205
|
+
- lib/gli/commands/help_modules/text_wrapper.rb
|
206
|
+
- lib/gli/commands/help_modules/tty_only_wrapper.rb
|
207
|
+
- lib/gli/commands/initconfig.rb
|
208
|
+
- lib/gli/commands/rdoc_document_listener.rb
|
209
|
+
- lib/gli/commands/scaffold.rb
|
210
|
+
- lib/gli/copy_options_to_aliases.rb
|
211
|
+
- lib/gli/dsl.rb
|
212
|
+
- lib/gli/exceptions.rb
|
213
|
+
- lib/gli/flag.rb
|
214
|
+
- lib/gli/gli_option_parser.rb
|
215
|
+
- lib/gli/option_parser_factory.rb
|
216
|
+
- lib/gli/options.rb
|
217
|
+
- lib/gli/switch.rb
|
218
|
+
- lib/gli/terminal.rb
|
219
|
+
- lib/gli/version.rb
|
220
|
+
- test/apps/README.md
|
221
|
+
- test/apps/todo/Gemfile
|
222
|
+
- test/apps/todo/README.rdoc
|
223
|
+
- test/apps/todo/Rakefile
|
224
|
+
- test/apps/todo/bin/todo
|
225
|
+
- test/apps/todo/lib/todo/commands/create.rb
|
226
|
+
- test/apps/todo/lib/todo/commands/list.rb
|
227
|
+
- test/apps/todo/lib/todo/commands/ls.rb
|
228
|
+
- test/apps/todo/lib/todo/version.rb
|
229
|
+
- test/apps/todo/test/tc_nothing.rb
|
230
|
+
- test/apps/todo/todo.gemspec
|
231
|
+
- test/apps/todo/todo.rdoc
|
232
|
+
- test/config.yaml
|
233
|
+
- test/fake_std_out.rb
|
234
|
+
- test/gli.reek
|
235
|
+
- test/init_simplecov.rb
|
236
|
+
- test/option_test_helper.rb
|
237
|
+
- test/roodi.yaml
|
238
|
+
- test/tc_command.rb
|
239
|
+
- test/tc_compount_command.rb
|
240
|
+
- test/tc_doc.rb
|
241
|
+
- test/tc_flag.rb
|
242
|
+
- test/tc_gli.rb
|
243
|
+
- test/tc_help.rb
|
244
|
+
- test/tc_options.rb
|
245
|
+
- test/tc_subcommands.rb
|
246
|
+
- test/tc_switch.rb
|
247
|
+
- test/tc_terminal.rb
|
248
|
+
- test/test_helper.rb
|
320
249
|
homepage: http://davetron5000.github.com/gli
|
321
250
|
licenses: []
|
251
|
+
|
322
252
|
post_install_message:
|
323
|
-
rdoc_options:
|
253
|
+
rdoc_options:
|
324
254
|
- --title
|
325
255
|
- Git Like Interface
|
326
256
|
- --main
|
327
257
|
- README.rdoc
|
328
|
-
require_paths:
|
258
|
+
require_paths:
|
329
259
|
- lib
|
330
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
260
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
331
261
|
none: false
|
332
|
-
requirements:
|
333
|
-
- -
|
334
|
-
- !ruby/object:Gem::Version
|
335
|
-
|
336
|
-
segments:
|
262
|
+
requirements:
|
263
|
+
- - ">="
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
hash: 3
|
266
|
+
segments:
|
337
267
|
- 0
|
338
|
-
|
339
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
268
|
+
version: "0"
|
269
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
340
270
|
none: false
|
341
|
-
requirements:
|
342
|
-
- -
|
343
|
-
- !ruby/object:Gem::Version
|
344
|
-
|
345
|
-
segments:
|
271
|
+
requirements:
|
272
|
+
- - ">="
|
273
|
+
- !ruby/object:Gem::Version
|
274
|
+
hash: 3
|
275
|
+
segments:
|
346
276
|
- 0
|
347
|
-
|
277
|
+
version: "0"
|
348
278
|
requirements: []
|
279
|
+
|
349
280
|
rubyforge_project: gli
|
350
281
|
rubygems_version: 1.8.24
|
351
282
|
signing_key:
|
352
283
|
specification_version: 3
|
353
284
|
summary: Build command-suite CLI apps that are awesome.
|
354
|
-
test_files:
|
355
|
-
-
|
356
|
-
|
357
|
-
-
|
358
|
-
|
359
|
-
-
|
360
|
-
|
361
|
-
|
362
|
-
-
|
363
|
-
|
364
|
-
-
|
365
|
-
|
366
|
-
-
|
367
|
-
|
368
|
-
-
|
369
|
-
|
370
|
-
-
|
371
|
-
|
372
|
-
-
|
373
|
-
|
374
|
-
-
|
375
|
-
|
376
|
-
-
|
377
|
-
|
378
|
-
-
|
379
|
-
|
380
|
-
-
|
381
|
-
|
382
|
-
-
|
383
|
-
|
384
|
-
-
|
385
|
-
|
386
|
-
-
|
387
|
-
|
388
|
-
-
|
389
|
-
|
390
|
-
-
|
391
|
-
dGVzdC9hcHBzL3RvZG8vdG9kby5nZW1zcGVj
|
392
|
-
- !binary |-
|
393
|
-
dGVzdC9hcHBzL3RvZG8vdG9kby5yZG9j
|
394
|
-
- !binary |-
|
395
|
-
dGVzdC9jb25maWcueWFtbA==
|
396
|
-
- !binary |-
|
397
|
-
dGVzdC9mYWtlX3N0ZF9vdXQucmI=
|
398
|
-
- !binary |-
|
399
|
-
dGVzdC9nbGkucmVlaw==
|
400
|
-
- !binary |-
|
401
|
-
dGVzdC9pbml0X3NpbXBsZWNvdi5yYg==
|
402
|
-
- !binary |-
|
403
|
-
dGVzdC9vcHRpb25fdGVzdF9oZWxwZXIucmI=
|
404
|
-
- !binary |-
|
405
|
-
dGVzdC9yb29kaS55YW1s
|
406
|
-
- !binary |-
|
407
|
-
dGVzdC90Y19jb21tYW5kLnJi
|
408
|
-
- !binary |-
|
409
|
-
dGVzdC90Y19jb21wb3VudF9jb21tYW5kLnJi
|
410
|
-
- !binary |-
|
411
|
-
dGVzdC90Y19kb2MucmI=
|
412
|
-
- !binary |-
|
413
|
-
dGVzdC90Y19mbGFnLnJi
|
414
|
-
- !binary |-
|
415
|
-
dGVzdC90Y19nbGkucmI=
|
416
|
-
- !binary |-
|
417
|
-
dGVzdC90Y19oZWxwLnJi
|
418
|
-
- !binary |-
|
419
|
-
dGVzdC90Y19vcHRpb25zLnJi
|
420
|
-
- !binary |-
|
421
|
-
dGVzdC90Y19zdWJjb21tYW5kcy5yYg==
|
422
|
-
- !binary |-
|
423
|
-
dGVzdC90Y19zd2l0Y2gucmI=
|
424
|
-
- !binary |-
|
425
|
-
dGVzdC90Y190ZXJtaW5hbC5yYg==
|
426
|
-
- !binary |-
|
427
|
-
dGVzdC90ZXN0X2hlbHBlci5yYg==
|
285
|
+
test_files:
|
286
|
+
- features/gli_executable.feature
|
287
|
+
- features/gli_init.feature
|
288
|
+
- features/step_definitions/gli_executable_steps.rb
|
289
|
+
- features/step_definitions/gli_init_steps.rb
|
290
|
+
- features/step_definitions/todo_steps.rb
|
291
|
+
- features/support/env.rb
|
292
|
+
- features/todo.feature
|
293
|
+
- test/apps/README.md
|
294
|
+
- test/apps/todo/Gemfile
|
295
|
+
- test/apps/todo/README.rdoc
|
296
|
+
- test/apps/todo/Rakefile
|
297
|
+
- test/apps/todo/bin/todo
|
298
|
+
- test/apps/todo/lib/todo/commands/create.rb
|
299
|
+
- test/apps/todo/lib/todo/commands/list.rb
|
300
|
+
- test/apps/todo/lib/todo/commands/ls.rb
|
301
|
+
- test/apps/todo/lib/todo/version.rb
|
302
|
+
- test/apps/todo/test/tc_nothing.rb
|
303
|
+
- test/apps/todo/todo.gemspec
|
304
|
+
- test/apps/todo/todo.rdoc
|
305
|
+
- test/config.yaml
|
306
|
+
- test/fake_std_out.rb
|
307
|
+
- test/gli.reek
|
308
|
+
- test/init_simplecov.rb
|
309
|
+
- test/option_test_helper.rb
|
310
|
+
- test/roodi.yaml
|
311
|
+
- test/tc_command.rb
|
312
|
+
- test/tc_compount_command.rb
|
313
|
+
- test/tc_doc.rb
|
314
|
+
- test/tc_flag.rb
|
315
|
+
- test/tc_gli.rb
|
316
|
+
- test/tc_help.rb
|
317
|
+
- test/tc_options.rb
|
318
|
+
- test/tc_subcommands.rb
|
319
|
+
- test/tc_switch.rb
|
320
|
+
- test/tc_terminal.rb
|
321
|
+
- test/test_helper.rb
|