hammer_cli 0.1.3 → 0.1.4

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.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/bin/hammer +3 -1
  3. data/config/cli_config.template.yml +3 -0
  4. data/doc/creating_commands.md +1 -1
  5. data/doc/installation.md +3 -2
  6. data/doc/release_notes.md +17 -0
  7. data/doc/writing_a_plugin.md +1 -1
  8. data/lib/hammer_cli/abstract.rb +46 -9
  9. data/lib/hammer_cli/apipie/command.rb +10 -1
  10. data/lib/hammer_cli/apipie/option_builder.rb +29 -11
  11. data/lib/hammer_cli/apipie/option_definition.rb +18 -0
  12. data/lib/hammer_cli/apipie/resource.rb +4 -22
  13. data/lib/hammer_cli/exception_handler.rb +18 -6
  14. data/lib/hammer_cli/exceptions.rb +1 -0
  15. data/lib/hammer_cli/i18n.rb +4 -0
  16. data/lib/hammer_cli/main.rb +2 -0
  17. data/lib/hammer_cli/modules.rb +30 -2
  18. data/lib/hammer_cli/options/matcher.rb +48 -0
  19. data/lib/hammer_cli/output/adapter.rb +3 -1
  20. data/lib/hammer_cli/output/adapter/csv.rb +5 -2
  21. data/lib/hammer_cli/output/adapter/json.rb +17 -0
  22. data/lib/hammer_cli/output/adapter/table.rb +11 -17
  23. data/lib/hammer_cli/output/adapter/tree_structure.rb +74 -0
  24. data/lib/hammer_cli/output/adapter/wrapper_formatter.rb +20 -0
  25. data/lib/hammer_cli/output/adapter/yaml.rb +16 -0
  26. data/lib/hammer_cli/shell.rb +3 -8
  27. data/lib/hammer_cli/utils.rb +10 -0
  28. data/lib/hammer_cli/version.rb +1 -1
  29. data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
  30. data/locale/de/hammer-cli.po +296 -0
  31. data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
  32. data/locale/en/hammer-cli.po +1 -1
  33. data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
  34. data/locale/en_GB/hammer-cli.po +133 -133
  35. data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
  36. data/locale/es/hammer-cli.po +148 -147
  37. data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
  38. data/locale/fr/hammer-cli.po +142 -141
  39. data/locale/hammer-cli.pot +39 -32
  40. data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
  41. data/locale/it/hammer-cli.po +293 -0
  42. data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
  43. data/locale/ja/hammer-cli.po +291 -0
  44. data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
  45. data/locale/ko/hammer-cli.po +292 -0
  46. data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
  47. data/locale/pt_BR/hammer-cli.po +294 -0
  48. data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
  49. data/locale/ru/hammer-cli.po +293 -0
  50. data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
  51. data/locale/zh_CN/hammer-cli.po +292 -0
  52. data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
  53. data/locale/zh_TW/hammer-cli.po +292 -0
  54. data/test/unit/apipie/command_test.rb +22 -0
  55. data/test/unit/apipie/option_builder_test.rb +21 -7
  56. data/test/unit/apipie/option_definition_test.rb +26 -0
  57. data/test/unit/fixtures/apipie/documented.json +26 -0
  58. data/test/unit/modules_test.rb +13 -2
  59. data/test/unit/options/matcher_test.rb +61 -0
  60. data/test/unit/output/adapter/json_test.rb +214 -0
  61. data/test/unit/output/adapter/table_test.rb +66 -0
  62. data/test/unit/output/adapter/yaml_test.rb +213 -0
  63. data/test/unit/utils_test.rb +17 -0
  64. metadata +249 -205
@@ -51,6 +51,23 @@ describe String do
51
51
 
52
52
  end
53
53
 
54
+
55
+ describe "underscore" do
56
+
57
+ it "converts camelized string to underscore" do
58
+ "OneTwoThree".underscore.must_equal "one_two_three"
59
+ end
60
+
61
+ it "converts full class path name to underscore with slashes" do
62
+ "HammerCLI::SomeClass".underscore.must_equal "hammer_cli/some_class"
63
+ end
64
+
65
+ it "converts dashes to underscores" do
66
+ "Re-Read".underscore.must_equal "re_read"
67
+ end
68
+
69
+ end
70
+
54
71
  describe "indent" do
55
72
 
56
73
  it "indents single line string" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Bačovský
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-20 00:00:00.000000000 Z
12
+ date: 2014-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
@@ -137,6 +137,20 @@ dependencies:
137
137
  - - '>='
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: rb-readline
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :runtime
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
140
154
  - !ruby/object:Gem::Dependency
141
155
  name: fastercsv
142
156
  requirement: !ruby/object:Gem::Requirement
@@ -169,16 +183,16 @@ dependencies:
169
183
  name: apipie-bindings
170
184
  requirement: !ruby/object:Gem::Requirement
171
185
  requirements:
172
- - - '>='
186
+ - - ~>
173
187
  - !ruby/object:Gem::Version
174
- version: 0.0.8
188
+ version: 0.0.10
175
189
  type: :runtime
176
190
  prerelease: false
177
191
  version_requirements: !ruby/object:Gem::Requirement
178
192
  requirements:
179
- - - '>='
193
+ - - ~>
180
194
  - !ruby/object:Gem::Version
181
- version: 0.0.8
195
+ version: 0.0.10
182
196
  description: |
183
197
  Hammer cli provides universal extendable CLI interface for ruby apps
184
198
  email: mbacovsk@redhat.com
@@ -206,251 +220,277 @@ extra_rdoc_files:
206
220
  - config/cli_config.template.yml
207
221
  - README.md
208
222
  files:
223
+ - LICENSE
224
+ - README.md
225
+ - bin/hammer
226
+ - config/cli.modules.d/module_config_template.yml
227
+ - config/cli_config.template.yml
228
+ - doc/creating_apipie_commands.md
229
+ - doc/creating_commands.md
230
+ - doc/design.png
231
+ - doc/design.uml
232
+ - doc/developer_docs.md
233
+ - doc/development_tips.md
234
+ - doc/i18n.md
235
+ - doc/installation.md
236
+ - doc/installation_deb.md
237
+ - doc/installation_gem.md
238
+ - doc/installation_rpm.md
239
+ - doc/installation_source.md
240
+ - doc/option_builders.md
241
+ - doc/option_normalizers.md
242
+ - doc/release_notes.md
243
+ - doc/writing_a_plugin.md
244
+ - hammer_cli_complete
209
245
  - lib/hammer_cli.rb
210
- - lib/hammer_cli/clamp.rb
211
- - lib/hammer_cli/options/option_definition.rb
212
- - lib/hammer_cli/options/normalizers.rb
213
- - lib/hammer_cli/logger.rb
214
- - lib/hammer_cli/messages.rb
215
- - lib/hammer_cli/main.rb
216
- - lib/hammer_cli/connection.rb
246
+ - lib/hammer_cli/abstract.rb
217
247
  - lib/hammer_cli/apipie.rb
218
- - lib/hammer_cli/settings.rb
219
- - lib/hammer_cli/completer.rb
220
- - lib/hammer_cli/modules.rb
221
- - lib/hammer_cli/exception_handler.rb
222
- - lib/hammer_cli/logger_watch.rb
223
- - lib/hammer_cli/i18n.rb
224
248
  - lib/hammer_cli/apipie/command.rb
225
- - lib/hammer_cli/apipie/resource.rb
226
249
  - lib/hammer_cli/apipie/option_builder.rb
250
+ - lib/hammer_cli/apipie/option_definition.rb
227
251
  - lib/hammer_cli/apipie/options.rb
228
- - lib/hammer_cli/version.rb
229
- - lib/hammer_cli/utils.rb
252
+ - lib/hammer_cli/apipie/resource.rb
253
+ - lib/hammer_cli/clamp.rb
254
+ - lib/hammer_cli/completer.rb
255
+ - lib/hammer_cli/connection.rb
256
+ - lib/hammer_cli/exception_handler.rb
230
257
  - lib/hammer_cli/exceptions.rb
231
- - lib/hammer_cli/validator.rb
258
+ - lib/hammer_cli/exit_codes.rb
259
+ - lib/hammer_cli/i18n.rb
260
+ - lib/hammer_cli/logger.rb
261
+ - lib/hammer_cli/logger_watch.rb
262
+ - lib/hammer_cli/main.rb
263
+ - lib/hammer_cli/messages.rb
264
+ - lib/hammer_cli/modules.rb
265
+ - lib/hammer_cli/option_builder.rb
266
+ - lib/hammer_cli/options/matcher.rb
267
+ - lib/hammer_cli/options/normalizers.rb
268
+ - lib/hammer_cli/options/option_definition.rb
269
+ - lib/hammer_cli/output.rb
232
270
  - lib/hammer_cli/output/adapter.rb
233
- - lib/hammer_cli/output/dsl.rb
234
- - lib/hammer_cli/output/record_collection.rb
235
- - lib/hammer_cli/output/adapter/csv.rb
236
- - lib/hammer_cli/output/adapter/base.rb
237
- - lib/hammer_cli/output/adapter/table.rb
238
271
  - lib/hammer_cli/output/adapter/abstract.rb
272
+ - lib/hammer_cli/output/adapter/base.rb
273
+ - lib/hammer_cli/output/adapter/csv.rb
274
+ - lib/hammer_cli/output/adapter/json.rb
239
275
  - lib/hammer_cli/output/adapter/silent.rb
240
- - lib/hammer_cli/output/formatters.rb
241
- - lib/hammer_cli/output/fields.rb
242
- - lib/hammer_cli/output/output.rb
276
+ - lib/hammer_cli/output/adapter/table.rb
277
+ - lib/hammer_cli/output/adapter/tree_structure.rb
278
+ - lib/hammer_cli/output/adapter/wrapper_formatter.rb
279
+ - lib/hammer_cli/output/adapter/yaml.rb
243
280
  - lib/hammer_cli/output/definition.rb
281
+ - lib/hammer_cli/output/dsl.rb
244
282
  - lib/hammer_cli/output/field_filter.rb
245
- - lib/hammer_cli/option_builder.rb
246
- - lib/hammer_cli/output.rb
247
- - lib/hammer_cli/exit_codes.rb
283
+ - lib/hammer_cli/output/fields.rb
284
+ - lib/hammer_cli/output/formatters.rb
285
+ - lib/hammer_cli/output/output.rb
286
+ - lib/hammer_cli/output/record_collection.rb
287
+ - lib/hammer_cli/settings.rb
248
288
  - lib/hammer_cli/shell.rb
249
- - lib/hammer_cli/abstract.rb
250
289
  - lib/hammer_cli/subcommand.rb
251
- - test/reports/TEST-HammerCLI-MainCommand.xml
252
- - test/reports/TEST-HammerCLI-ShellHistory.xml
253
- - test/reports/TEST-Fields-Field-display-blank-is-not-allowed.xml
290
+ - lib/hammer_cli/utils.rb
291
+ - lib/hammer_cli/validator.rb
292
+ - lib/hammer_cli/version.rb
293
+ - locale/Makefile
294
+ - locale/README.md
295
+ - locale/de/LC_MESSAGES/hammer-cli.mo
296
+ - locale/de/hammer-cli.po
297
+ - locale/en/LC_MESSAGES/hammer-cli.mo
298
+ - locale/en/hammer-cli.po
299
+ - locale/en_GB/LC_MESSAGES/hammer-cli.mo
300
+ - locale/en_GB/hammer-cli.po
301
+ - locale/es/LC_MESSAGES/hammer-cli.mo
302
+ - locale/es/hammer-cli.po
303
+ - locale/fr/LC_MESSAGES/hammer-cli.mo
304
+ - locale/fr/hammer-cli.po
305
+ - locale/hammer-cli.pot
306
+ - locale/it/LC_MESSAGES/hammer-cli.mo
307
+ - locale/it/hammer-cli.po
308
+ - locale/ja/LC_MESSAGES/hammer-cli.mo
309
+ - locale/ja/hammer-cli.po
310
+ - locale/ko/LC_MESSAGES/hammer-cli.mo
311
+ - locale/ko/hammer-cli.po
312
+ - locale/pt_BR/LC_MESSAGES/hammer-cli.mo
313
+ - locale/pt_BR/hammer-cli.po
314
+ - locale/ru/LC_MESSAGES/hammer-cli.mo
315
+ - locale/ru/hammer-cli.po
316
+ - locale/zanata.xml
317
+ - locale/zh_CN/LC_MESSAGES/hammer-cli.mo
318
+ - locale/zh_CN/hammer-cli.po
319
+ - locale/zh_TW/LC_MESSAGES/hammer-cli.mo
320
+ - locale/zh_TW/hammer-cli.po
321
+ - test/reports/TEST-Fields-ContainerField-display-.xml
322
+ - test/reports/TEST-Fields-ContainerField-display-blank-is-allowed.xml
254
323
  - test/reports/TEST-Fields-ContainerField-display-blank-is-not-allowed.xml
255
- - test/reports/TEST-HammerCLI-OptionBuilderContainer.0.xml
256
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues.xml
257
- - test/reports/TEST-HammerCLI-CompleterWord-complete-.xml
258
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-column-width.xml
259
- - test/reports/TEST-HammerCLI-Options-OptionDefinition-context.xml
260
- - test/reports/TEST-HammerCLI-Output-Definition.xml
261
- - test/reports/TEST-HammerCLI-ShellHistory-loading-old-history.xml
262
- - test/reports/TEST-HammerCLI-Options-Normalizers-key-value-list.xml
324
+ - test/reports/TEST-Fields-ContainerField.xml
325
+ - test/reports/TEST-Fields-Field-display-.xml
326
+ - test/reports/TEST-Fields-Field-display-blank-is-allowed.xml
327
+ - test/reports/TEST-Fields-Field-display-blank-is-not-allowed.xml
328
+ - test/reports/TEST-Fields-Field-hide-blank-.xml
329
+ - test/reports/TEST-Fields-Field-parameters.xml
330
+ - test/reports/TEST-Fields-Field.xml
331
+ - test/reports/TEST-HammerCLI-AbstractCommand-build-options.xml
332
+ - test/reports/TEST-HammerCLI-AbstractCommand-exception-handler.xml
333
+ - test/reports/TEST-HammerCLI-AbstractCommand-logging.xml
334
+ - test/reports/TEST-HammerCLI-AbstractCommand-option-builder.xml
335
+ - test/reports/TEST-HammerCLI-AbstractCommand-options.xml
336
+ - test/reports/TEST-HammerCLI-AbstractCommand-output.xml
337
+ - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-remove-subcommand.xml
338
+ - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand-.xml
339
+ - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand.xml
340
+ - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior.xml
341
+ - test/reports/TEST-HammerCLI-AbstractCommand.xml
263
342
  - test/reports/TEST-HammerCLI-Apipie-Command-options.xml
264
343
  - test/reports/TEST-HammerCLI-Apipie-Command-resource-defined.xml
265
- - test/reports/TEST-HammerCLI-Output-Formatters-FormatterContainer.xml
266
- - test/reports/TEST-HammerCLI-Output-Formatters-BooleanFormatter.xml
267
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-formatters.xml
268
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior.xml
269
- - test/reports/TEST-constraints.xml
270
- - test/reports/TEST-HammerCLI-Output-Adapter-Table.xml
271
- - test/reports/TEST-HammerCLI-Options-Normalizers-enum.xml
272
- - test/reports/TEST-HammerCLI-AbstractCommand-option-builder.xml
273
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint.xml
344
+ - test/reports/TEST-HammerCLI-Apipie-Command-setting-resources.xml
274
345
  - test/reports/TEST-HammerCLI-Apipie-Command.xml
275
- - test/reports/TEST-HammerCLI-Options-Normalizers-bool.xml
276
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-hash-params.xml
277
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-ids.xml
278
- - test/reports/TEST-Fields-ContainerField.xml
279
- - test/reports/TEST-HammerCLI-AbstractCommand-output.xml
280
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-required-options.xml
281
- - test/reports/TEST-HammerCLI-Modules.xml
282
- - test/reports/TEST-HammerCLI-Options-Normalizers-abstract.xml
283
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-filtering-options.xml
284
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection.xml
285
- - test/reports/TEST-HammerCLI-Options-OptionDefinition-formatters.xml
286
346
  - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-aliasing-resources.xml
287
- - test/reports/TEST-HammerCLI-Modules-find-by-name.xml
288
- - test/reports/TEST-HammerCLI-Output-Output-formatters.xml
289
- - test/reports/TEST-HammerCLI-Output-Formatters-ListFormatter.xml
290
- - test/reports/TEST-HammerCLI-AbstractCommand-exception-handler.xml
291
- - test/reports/TEST-HammerCLI-CompleterLine-splitting-words.xml
292
- - test/reports/TEST-HammerCLI-Output-Output.xml
347
+ - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-filtering-options.xml
348
+ - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-required-options.xml
349
+ - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-correct-normalizers.xml
350
+ - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-hash-params.xml
293
351
  - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-one-simple-param.xml
352
+ - test/reports/TEST-HammerCLI-Apipie-OptionBuilder.xml
353
+ - test/reports/TEST-HammerCLI-Completer-command-completion.xml
354
+ - test/reports/TEST-HammerCLI-Completer-option-value-completion.xml
355
+ - test/reports/TEST-HammerCLI-Completer-subcommand-completion.xml
356
+ - test/reports/TEST-HammerCLI-Completer.xml
357
+ - test/reports/TEST-HammerCLI-CompleterLine-line-complete.xml
358
+ - test/reports/TEST-HammerCLI-CompleterLine-splitting-words.xml
294
359
  - test/reports/TEST-HammerCLI-CompleterLine.xml
295
- - test/reports/TEST-HammerCLI-Modules-names.xml
296
- - test/reports/TEST-Fields-Field-hide-blank-.xml
297
- - test/reports/TEST-HammerCLI-AbstractCommand-logging.xml
298
- - test/reports/TEST-HammerCLI-Connection.xml
360
+ - test/reports/TEST-HammerCLI-CompleterWord-complete-.xml
299
361
  - test/reports/TEST-HammerCLI-CompleterWord-quote.xml
300
- - test/reports/TEST-HammerCLI-AbstractCommand-build-options.xml
301
- - test/reports/TEST-HammerCLI-Output-Formatters-DateFormatter.xml
302
- - test/reports/TEST-HammerCLI-MainCommand-loading-context-password.xml
303
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-messages.xml
304
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-handle-ids.xml
305
- - test/reports/TEST-HammerCLI-OptionBuilderContainer.xml
306
- - test/reports/TEST-HammerCLI-Output-FieldFilter.xml
307
- - test/reports/TEST-Fields-ContainerField-display-blank-is-allowed.xml
362
+ - test/reports/TEST-HammerCLI-CompleterWord-quoted-.xml
308
363
  - test/reports/TEST-HammerCLI-CompleterWord.xml
309
- - test/reports/TEST-HammerCLI-Apipie-Command-setting-resources.xml
364
+ - test/reports/TEST-HammerCLI-Connection.xml
365
+ - test/reports/TEST-HammerCLI-ExceptionHandler.xml
366
+ - test/reports/TEST-HammerCLI-I18n.xml
367
+ - test/reports/TEST-HammerCLI-MainCommand-loading-context-password.xml
368
+ - test/reports/TEST-HammerCLI-MainCommand-loading-context-username.xml
369
+ - test/reports/TEST-HammerCLI-MainCommand-loading-context-verbose.xml
370
+ - test/reports/TEST-HammerCLI-MainCommand-loading-context.xml
371
+ - test/reports/TEST-HammerCLI-MainCommand.xml
372
+ - test/reports/TEST-HammerCLI-Modules-find-by-name.xml
373
+ - test/reports/TEST-HammerCLI-Modules-load-a-module-module-not-found.xml
374
+ - test/reports/TEST-HammerCLI-Modules-load-a-module-module-runtime-exception.xml
375
+ - test/reports/TEST-HammerCLI-Modules-load-a-module-success.xml
310
376
  - test/reports/TEST-HammerCLI-Modules-load-a-module.xml
311
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-required.xml
377
+ - test/reports/TEST-HammerCLI-Modules-load-all-modules.xml
378
+ - test/reports/TEST-HammerCLI-Modules-names.xml
379
+ - test/reports/TEST-HammerCLI-Modules.xml
380
+ - test/reports/TEST-HammerCLI-OptionBuilderContainer.0.xml
381
+ - test/reports/TEST-HammerCLI-OptionBuilderContainer.xml
382
+ - test/reports/TEST-HammerCLI-Options-Normalizers-abstract.xml
383
+ - test/reports/TEST-HammerCLI-Options-Normalizers-bool.xml
384
+ - test/reports/TEST-HammerCLI-Options-Normalizers-datetime.xml
385
+ - test/reports/TEST-HammerCLI-Options-Normalizers-enum.xml
312
386
  - test/reports/TEST-HammerCLI-Options-Normalizers-enumlist.xml
387
+ - test/reports/TEST-HammerCLI-Options-Normalizers-json-input.xml
388
+ - test/reports/TEST-HammerCLI-Options-Normalizers-key-value-list.xml
389
+ - test/reports/TEST-HammerCLI-Options-Normalizers-list.xml
390
+ - test/reports/TEST-HammerCLI-Options-Normalizers.xml
391
+ - test/reports/TEST-HammerCLI-Options-OptionDefinition-context.xml
392
+ - test/reports/TEST-HammerCLI-Options-OptionDefinition-formatters.xml
393
+ - test/reports/TEST-HammerCLI-Options-OptionDefinition.xml
394
+ - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-error-messages.xml
395
+ - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-messages.xml
396
+ - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-test-data-for-field.xml
397
+ - test/reports/TEST-HammerCLI-Output-Adapter-Abstract.xml
313
398
  - test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection-show-ids.xml
314
- - test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint-exist-.xml
315
- - test/reports/TEST-HammerCLI-ShellHistory-saving-history.xml
316
- - test/reports/TEST-String.xml
317
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-formatters.xml
318
- - test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint.xml
319
399
  - test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection.xml
320
- - test/reports/TEST-Fields-ContainerField-display-.xml
321
- - test/reports/TEST-HammerCLI-Settings-load-from-paths.xml
322
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-message.xml
323
- - test/reports/TEST-HammerCLI-Settings.xml
324
- - test/reports/TEST-HammerCLI-Output-RecordCollection.xml
325
- - test/reports/TEST-HammerCLI-Modules-load-a-module-module-not-found.xml
326
- - test/reports/TEST-HammerCLI-Output-Formatters-FieldFormatter.xml
327
- - test/reports/TEST-HammerCLI-Completer-subcommand-completion.xml
328
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract.xml
329
- - test/reports/TEST-HammerCLI-Output-Formatters-FormatterLibrary.xml
330
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-remove-subcommand.xml
331
- - test/reports/TEST-HammerCLI-Output-Output-messages.xml
332
- - test/reports/TEST-HammerCLI-MainCommand-loading-context-verbose.xml
333
- - test/reports/TEST-HammerCLI-Completer-option-value-completion.xml
334
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand.xml
335
- - test/reports/TEST-Fields-Field.xml
336
- - test/reports/TEST-HammerCLI-AbstractCommand.xml
337
- - test/reports/TEST-HammerCLI-CompleterWord-quoted-.xml
338
- - test/reports/TEST-HammerCLI-Modules-load-a-module-module-runtime-exception.xml
339
- - test/reports/TEST-HammerCLI-Output-Formatters-KeyValueFormatter.xml
340
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-exist-.xml
341
- - test/reports/TEST-HammerCLI-Options-Normalizers-datetime.xml
400
+ - test/reports/TEST-HammerCLI-Output-Adapter-Base.xml
401
+ - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-formatters.xml
402
+ - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-collections.xml
342
403
  - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-containers.xml
343
- - test/reports/TEST-HammerCLI-Completer-command-completion.xml
344
- - test/reports/TEST-HammerCLI-Options-OptionDefinition.xml
345
- - test/reports/TEST-HammerCLI-Modules-load-all-modules.xml
346
- - test/reports/TEST-HammerCLI-Output-Dsl-label.xml
347
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-rejected.xml
348
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-correct-normalizers.xml
349
- - test/reports/TEST-HammerCLI-I18n.xml
350
- - test/reports/TEST-MiniTest-Spec.xml
351
- - test/reports/TEST-HammerCLI-Output-Output-adapters.xml
352
- - test/reports/TEST-HammerCLI-MainCommand-loading-context-username.xml
353
- - test/reports/TEST-HammerCLI-Options-Normalizers.xml
354
- - test/reports/TEST-HammerCLI-Output-Dsl.xml
355
- - test/reports/TEST-HammerCLI-Output-Output-data.xml
356
- - test/reports/TEST-Fields-Field-display-.xml
404
+ - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-ids.xml
405
+ - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection.xml
406
+ - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-message.xml
407
+ - test/reports/TEST-HammerCLI-Output-Adapter-CSValues.xml
408
+ - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-column-width.xml
409
+ - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-formatters.xml
410
+ - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-handle-ids.xml
411
+ - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-sort-columns.xml
412
+ - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection.xml
413
+ - test/reports/TEST-HammerCLI-Output-Adapter-Table.xml
414
+ - test/reports/TEST-HammerCLI-Output-Definition-empty-.xml
415
+ - test/reports/TEST-HammerCLI-Output-Definition.xml
357
416
  - test/reports/TEST-HammerCLI-Output-Dsl-collection.xml
358
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand-.xml
417
+ - test/reports/TEST-HammerCLI-Output-Dsl-custom-fields.xml
359
418
  - test/reports/TEST-HammerCLI-Output-Dsl-fields.xml
360
- - test/reports/TEST-HammerCLI-MainCommand-loading-context.xml
361
- - test/reports/TEST-HammerCLI-Completer.xml
362
- - test/reports/TEST-String-interactive-.xml
363
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-collections.xml
364
- - test/reports/TEST-String-formatting.xml
419
+ - test/reports/TEST-HammerCLI-Output-Dsl-label.xml
365
420
  - test/reports/TEST-HammerCLI-Output-Dsl-path-definition.xml
366
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-error-messages.xml
367
- - test/reports/TEST-HammerCLI-Output-Dsl-custom-fields.xml
421
+ - test/reports/TEST-HammerCLI-Output-Dsl.xml
422
+ - test/reports/TEST-HammerCLI-Output-FieldFilter.xml
423
+ - test/reports/TEST-HammerCLI-Output-Formatters-BooleanFormatter.xml
368
424
  - test/reports/TEST-HammerCLI-Output-Formatters-ColorFormatter.xml
369
- - test/reports/TEST-HammerCLI-ExceptionHandler.xml
370
- - test/reports/TEST-HammerCLI-Output-Adapter-Base.xml
371
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-test-data-for-field.xml
372
- - test/reports/TEST-HammerCLI-Modules-load-a-module-success.xml
373
- - test/reports/TEST-Fields-Field-parameters.xml
374
- - test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint-exist-.xml
375
- - test/reports/TEST-Fields-Field-display-blank-is-allowed.xml
425
+ - test/reports/TEST-HammerCLI-Output-Formatters-DateFormatter.xml
426
+ - test/reports/TEST-HammerCLI-Output-Formatters-FieldFormatter.xml
427
+ - test/reports/TEST-HammerCLI-Output-Formatters-FormatterContainer.xml
428
+ - test/reports/TEST-HammerCLI-Output-Formatters-FormatterLibrary.xml
429
+ - test/reports/TEST-HammerCLI-Output-Formatters-KeyValueFormatter.xml
430
+ - test/reports/TEST-HammerCLI-Output-Formatters-ListFormatter.xml
376
431
  - test/reports/TEST-HammerCLI-Output-Formatters-LongTextFormatter.xml
377
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-sort-columns.xml
432
+ - test/reports/TEST-HammerCLI-Output-Output-adapters.xml
433
+ - test/reports/TEST-HammerCLI-Output-Output-data.xml
434
+ - test/reports/TEST-HammerCLI-Output-Output-formatters.xml
435
+ - test/reports/TEST-HammerCLI-Output-Output-messages.xml
436
+ - test/reports/TEST-HammerCLI-Output-Output.xml
437
+ - test/reports/TEST-HammerCLI-Output-RecordCollection.xml
438
+ - test/reports/TEST-HammerCLI-Settings-load-from-paths.xml
439
+ - test/reports/TEST-HammerCLI-Settings.xml
440
+ - test/reports/TEST-HammerCLI-ShellHistory-loading-old-history.xml
441
+ - test/reports/TEST-HammerCLI-ShellHistory-saving-history.xml
442
+ - test/reports/TEST-HammerCLI-ShellHistory.xml
443
+ - test/reports/TEST-MiniTest-Spec.xml
378
444
  - test/reports/TEST-String-camelize.xml
445
+ - test/reports/TEST-String-formatting.xml
379
446
  - test/reports/TEST-String-indent.xml
380
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection.xml
381
- - test/reports/TEST-HammerCLI-Options-Normalizers-list.xml
382
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder.xml
447
+ - test/reports/TEST-String-interactive-.xml
448
+ - test/reports/TEST-String.xml
449
+ - test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint-exist-.xml
383
450
  - test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint.xml
384
- - test/reports/TEST-HammerCLI-AbstractCommand-options.xml
385
- - test/reports/TEST-HammerCLI-CompleterLine-line-complete.xml
386
- - test/reports/TEST-HammerCLI-Output-Definition-empty-.xml
387
- - test/reports/TEST-HammerCLI-Options-Normalizers-json-input.xml
451
+ - test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint-exist-.xml
452
+ - test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint.xml
453
+ - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-exist-.xml
454
+ - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-rejected.xml
455
+ - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-required.xml
456
+ - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint.xml
457
+ - test/reports/TEST-constraints.xml
388
458
  - test/unit/abstract_test.rb
389
- - test/unit/validator_test.rb
390
- - test/unit/main_test.rb
391
- - test/unit/options/field_filter_test.rb
392
- - test/unit/options/option_definition_test.rb
393
- - test/unit/options/normalizers_test.rb
394
- - test/unit/settings_test.rb
395
- - test/unit/exception_handler_test.rb
396
- - test/unit/utils_test.rb
397
- - test/unit/fixtures/json_input/valid.json
398
- - test/unit/fixtures/json_input/invalid.json
399
- - test/unit/fixtures/apipie/documented.json
400
- - test/unit/fixtures/apipie/architectures.json
401
459
  - test/unit/apipie/command_test.rb
402
460
  - test/unit/apipie/option_builder_test.rb
461
+ - test/unit/apipie/option_definition_test.rb
462
+ - test/unit/completer_test.rb
463
+ - test/unit/connection_test.rb
464
+ - test/unit/exception_handler_test.rb
465
+ - test/unit/fixtures/apipie/architectures.json
466
+ - test/unit/fixtures/apipie/documented.json
467
+ - test/unit/fixtures/json_input/invalid.json
468
+ - test/unit/fixtures/json_input/valid.json
469
+ - test/unit/history_test.rb
403
470
  - test/unit/i18n_test.rb
471
+ - test/unit/main_test.rb
472
+ - test/unit/modules_test.rb
404
473
  - test/unit/option_builder_test.rb
405
- - test/unit/output/fields_test.rb
406
- - test/unit/output/adapter/csv_test.rb
474
+ - test/unit/options/field_filter_test.rb
475
+ - test/unit/options/matcher_test.rb
476
+ - test/unit/options/normalizers_test.rb
477
+ - test/unit/options/option_definition_test.rb
407
478
  - test/unit/output/adapter/abstract_test.rb
408
479
  - test/unit/output/adapter/base_test.rb
480
+ - test/unit/output/adapter/csv_test.rb
481
+ - test/unit/output/adapter/json_test.rb
409
482
  - test/unit/output/adapter/table_test.rb
483
+ - test/unit/output/adapter/yaml_test.rb
484
+ - test/unit/output/definition_test.rb
410
485
  - test/unit/output/dsl_test.rb
411
- - test/unit/output/output_test.rb
486
+ - test/unit/output/fields_test.rb
412
487
  - test/unit/output/formatters_test.rb
488
+ - test/unit/output/output_test.rb
413
489
  - test/unit/output/record_collection_test.rb
414
- - test/unit/output/definition_test.rb
415
- - test/unit/completer_test.rb
416
- - test/unit/history_test.rb
417
- - test/unit/modules_test.rb
490
+ - test/unit/settings_test.rb
418
491
  - test/unit/test_helper.rb
419
- - test/unit/connection_test.rb
420
- - bin/hammer
421
- - doc/option_builders.md
422
- - doc/design.uml
423
- - doc/writing_a_plugin.md
424
- - doc/installation_gem.md
425
- - doc/option_normalizers.md
426
- - doc/development_tips.md
427
- - doc/i18n.md
428
- - doc/creating_apipie_commands.md
429
- - doc/developer_docs.md
430
- - doc/design.png
431
- - doc/creating_commands.md
432
- - doc/installation_source.md
433
- - doc/installation_rpm.md
434
- - doc/installation.md
435
- - doc/installation_deb.md
436
- - doc/release_notes.md
437
- - config/cli.modules.d/module_config_template.yml
438
- - config/cli_config.template.yml
439
- - locale/README.md
440
- - locale/en_GB/hammer-cli.po
441
- - locale/en_GB/LC_MESSAGES/hammer-cli.mo
442
- - locale/es/hammer-cli.po
443
- - locale/es/LC_MESSAGES/hammer-cli.mo
444
- - locale/en/hammer-cli.po
445
- - locale/en/LC_MESSAGES/hammer-cli.mo
446
- - locale/hammer-cli.pot
447
- - locale/Makefile
448
- - locale/zanata.xml
449
- - locale/fr/hammer-cli.po
450
- - locale/fr/LC_MESSAGES/hammer-cli.mo
451
- - LICENSE
452
- - README.md
453
- - hammer_cli_complete
492
+ - test/unit/utils_test.rb
493
+ - test/unit/validator_test.rb
454
494
  homepage: http://github.com/theforeman/hammer-cli
455
495
  licenses:
456
496
  - GPL-3
@@ -471,7 +511,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
471
511
  version: '0'
472
512
  requirements: []
473
513
  rubyforge_project:
474
- rubygems_version: 2.1.11
514
+ rubygems_version: 2.4.4
475
515
  signing_key:
476
516
  specification_version: 4
477
517
  summary: Universal command-line interface
@@ -619,6 +659,7 @@ test_files:
619
659
  - test/unit/options/field_filter_test.rb
620
660
  - test/unit/options/option_definition_test.rb
621
661
  - test/unit/options/normalizers_test.rb
662
+ - test/unit/options/matcher_test.rb
622
663
  - test/unit/settings_test.rb
623
664
  - test/unit/exception_handler_test.rb
624
665
  - test/unit/utils_test.rb
@@ -627,14 +668,17 @@ test_files:
627
668
  - test/unit/fixtures/apipie/documented.json
628
669
  - test/unit/fixtures/apipie/architectures.json
629
670
  - test/unit/apipie/command_test.rb
671
+ - test/unit/apipie/option_definition_test.rb
630
672
  - test/unit/apipie/option_builder_test.rb
631
673
  - test/unit/i18n_test.rb
632
674
  - test/unit/option_builder_test.rb
633
675
  - test/unit/output/fields_test.rb
634
676
  - test/unit/output/adapter/csv_test.rb
635
677
  - test/unit/output/adapter/abstract_test.rb
678
+ - test/unit/output/adapter/json_test.rb
636
679
  - test/unit/output/adapter/base_test.rb
637
680
  - test/unit/output/adapter/table_test.rb
681
+ - test/unit/output/adapter/yaml_test.rb
638
682
  - test/unit/output/dsl_test.rb
639
683
  - test/unit/output/output_test.rb
640
684
  - test/unit/output/formatters_test.rb