hammer_cli 0.9.0 → 0.10.0

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 (225) hide show
  1. checksums.yaml +4 -4
  2. data/bin/hammer +22 -1
  3. data/config/cli_config.template.yml +20 -0
  4. data/doc/release_notes.md +7 -0
  5. data/lib/hammer_cli/abstract.rb +12 -15
  6. data/lib/hammer_cli/apipie/api_connection.rb +3 -1
  7. data/lib/hammer_cli/ca_cert_fetcher.rb +67 -0
  8. data/lib/hammer_cli/defaults.rb +18 -10
  9. data/lib/hammer_cli/exception_handler.rb +44 -5
  10. data/lib/hammer_cli/main.rb +8 -0
  11. data/lib/hammer_cli/options/option_collector.rb +22 -0
  12. data/lib/hammer_cli/options/sources/command_line.rb +18 -0
  13. data/lib/hammer_cli/options/sources/saved_defaults.rb +31 -0
  14. data/lib/hammer_cli/output/adapter/table.rb +66 -87
  15. data/lib/hammer_cli/output/fields.rb +1 -1
  16. data/lib/hammer_cli/ssloptions.rb +65 -0
  17. data/lib/hammer_cli/version.rb +1 -1
  18. data/locale/ca/LC_MESSAGES/hammer-cli.mo +0 -0
  19. data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
  20. data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
  21. data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
  22. data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
  23. data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
  24. data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
  25. data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
  26. data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
  27. data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
  28. data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
  29. data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
  30. data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
  31. data/man/hammer.1.gz +0 -0
  32. data/test/unit/abstract_test.rb +34 -0
  33. data/test/unit/apipie/api_connection_test.rb +3 -2
  34. data/test/unit/defaults_test.rb +15 -5
  35. data/test/unit/fixtures/defaults/defaults.yml +2 -0
  36. data/test/unit/options/option_collector_test.rb +29 -0
  37. data/test/unit/options/sources/command_line_test.rb +36 -0
  38. data/test/unit/options/sources/saved_defaults_test.rb +59 -0
  39. data/test/unit/output/adapter/table_test.rb +0 -27
  40. data/test/unit/{options → output}/field_filter_test.rb +0 -0
  41. data/test/unit/output/fields_test.rb +9 -6
  42. data/test/unit/validator_test.rb +0 -6
  43. metadata +60 -382
  44. data/lib/hammer_cli/table_print/column.rb +0 -19
  45. data/lib/hammer_cli/table_print/formatter.rb +0 -18
  46. data/locale/Makefile +0 -57
  47. data/locale/README.md +0 -18
  48. data/locale/ca/hammer-cli.edit.po +0 -445
  49. data/locale/ca/hammer-cli.po +0 -361
  50. data/locale/ca/hammer-cli.po.time_stamp +0 -0
  51. data/locale/de/hammer-cli.edit.po +0 -451
  52. data/locale/de/hammer-cli.po +0 -379
  53. data/locale/de/hammer-cli.po.time_stamp +0 -0
  54. data/locale/en/hammer-cli.edit.po +0 -443
  55. data/locale/en/hammer-cli.po +0 -355
  56. data/locale/en/hammer-cli.po.time_stamp +0 -0
  57. data/locale/en_GB/hammer-cli.edit.po +0 -445
  58. data/locale/en_GB/hammer-cli.po +0 -371
  59. data/locale/en_GB/hammer-cli.po.time_stamp +0 -0
  60. data/locale/es/hammer-cli.edit.po +0 -448
  61. data/locale/es/hammer-cli.po +0 -377
  62. data/locale/es/hammer-cli.po.time_stamp +0 -0
  63. data/locale/fr/hammer-cli.edit.po +0 -447
  64. data/locale/fr/hammer-cli.po +0 -374
  65. data/locale/fr/hammer-cli.po.time_stamp +0 -0
  66. data/locale/hammer-cli.pot +0 -461
  67. data/locale/it/hammer-cli.edit.po +0 -446
  68. data/locale/it/hammer-cli.po +0 -377
  69. data/locale/it/hammer-cli.po.time_stamp +0 -0
  70. data/locale/ja/hammer-cli.edit.po +0 -445
  71. data/locale/ja/hammer-cli.po +0 -363
  72. data/locale/ja/hammer-cli.po.time_stamp +0 -0
  73. data/locale/ko/hammer-cli.edit.po +0 -445
  74. data/locale/ko/hammer-cli.po +0 -364
  75. data/locale/ko/hammer-cli.po.time_stamp +0 -0
  76. data/locale/pt_BR/hammer-cli.edit.po +0 -449
  77. data/locale/pt_BR/hammer-cli.po +0 -374
  78. data/locale/pt_BR/hammer-cli.po.time_stamp +0 -0
  79. data/locale/ru/hammer-cli.edit.po +0 -448
  80. data/locale/ru/hammer-cli.po +0 -374
  81. data/locale/ru/hammer-cli.po.time_stamp +0 -0
  82. data/locale/zanata.xml +0 -28
  83. data/locale/zh_CN/hammer-cli.edit.po +0 -445
  84. data/locale/zh_CN/hammer-cli.po +0 -367
  85. data/locale/zh_CN/hammer-cli.po.time_stamp +0 -0
  86. data/locale/zh_TW/hammer-cli.edit.po +0 -445
  87. data/locale/zh_TW/hammer-cli.po +0 -364
  88. data/locale/zh_TW/hammer-cli.po.time_stamp +0 -0
  89. data/test/reports/TEST-Fields-ContainerField-display-.xml +0 -7
  90. data/test/reports/TEST-Fields-ContainerField-display-blank-is-allowed.xml +0 -15
  91. data/test/reports/TEST-Fields-ContainerField-display-blank-is-not-allowed.xml +0 -15
  92. data/test/reports/TEST-Fields-ContainerField.xml +0 -7
  93. data/test/reports/TEST-Fields-Field-display-.xml +0 -7
  94. data/test/reports/TEST-Fields-Field-display-blank-is-allowed.xml +0 -11
  95. data/test/reports/TEST-Fields-Field-display-blank-is-not-allowed.xml +0 -11
  96. data/test/reports/TEST-Fields-Field-hide-blank-.xml +0 -11
  97. data/test/reports/TEST-Fields-Field-parameters.xml +0 -9
  98. data/test/reports/TEST-Fields-Field.xml +0 -13
  99. data/test/reports/TEST-HammerCLI-AbstractCommand-build-options.xml +0 -15
  100. data/test/reports/TEST-HammerCLI-AbstractCommand-exception-handler.xml +0 -13
  101. data/test/reports/TEST-HammerCLI-AbstractCommand-logging.xml +0 -21
  102. data/test/reports/TEST-HammerCLI-AbstractCommand-option-builder.xml +0 -11
  103. data/test/reports/TEST-HammerCLI-AbstractCommand-options.xml +0 -11
  104. data/test/reports/TEST-HammerCLI-AbstractCommand-output.xml +0 -19
  105. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-remove-subcommand.xml +0 -11
  106. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand-.xml +0 -13
  107. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand.xml +0 -11
  108. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior.xml +0 -7
  109. data/test/reports/TEST-HammerCLI-AbstractCommand.xml +0 -11
  110. data/test/reports/TEST-HammerCLI-Apipie-Command-options.xml +0 -11
  111. data/test/reports/TEST-HammerCLI-Apipie-Command-resource-defined.xml +0 -9
  112. data/test/reports/TEST-HammerCLI-Apipie-Command-setting-resources.xml +0 -19
  113. data/test/reports/TEST-HammerCLI-Apipie-Command.xml +0 -9
  114. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-aliasing-resources.xml +0 -13
  115. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-filtering-options.xml +0 -15
  116. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-required-options.xml +0 -11
  117. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-correct-normalizers.xml +0 -9
  118. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-hash-params.xml +0 -11
  119. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-one-simple-param.xml +0 -15
  120. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder.xml +0 -7
  121. data/test/reports/TEST-HammerCLI-Completer-command-completion.xml +0 -29
  122. data/test/reports/TEST-HammerCLI-Completer-option-value-completion.xml +0 -17
  123. data/test/reports/TEST-HammerCLI-Completer-subcommand-completion.xml +0 -19
  124. data/test/reports/TEST-HammerCLI-Completer.xml +0 -7
  125. data/test/reports/TEST-HammerCLI-CompleterLine-line-complete.xml +0 -25
  126. data/test/reports/TEST-HammerCLI-CompleterLine-splitting-words.xml +0 -29
  127. data/test/reports/TEST-HammerCLI-CompleterLine.xml +0 -7
  128. data/test/reports/TEST-HammerCLI-CompleterWord-complete-.xml +0 -23
  129. data/test/reports/TEST-HammerCLI-CompleterWord-quote.xml +0 -15
  130. data/test/reports/TEST-HammerCLI-CompleterWord-quoted-.xml +0 -13
  131. data/test/reports/TEST-HammerCLI-CompleterWord.xml +0 -7
  132. data/test/reports/TEST-HammerCLI-Connection.xml +0 -21
  133. data/test/reports/TEST-HammerCLI-ExceptionHandler.xml +0 -21
  134. data/test/reports/TEST-HammerCLI-I18n.xml +0 -11
  135. data/test/reports/TEST-HammerCLI-MainCommand-loading-context-password.xml +0 -11
  136. data/test/reports/TEST-HammerCLI-MainCommand-loading-context-username.xml +0 -11
  137. data/test/reports/TEST-HammerCLI-MainCommand-loading-context-verbose.xml +0 -9
  138. data/test/reports/TEST-HammerCLI-MainCommand-loading-context.xml +0 -7
  139. data/test/reports/TEST-HammerCLI-MainCommand.xml +0 -7
  140. data/test/reports/TEST-HammerCLI-Modules-find-by-name.xml +0 -13
  141. data/test/reports/TEST-HammerCLI-Modules-load-a-module-module-not-found.xml +0 -13
  142. data/test/reports/TEST-HammerCLI-Modules-load-a-module-module-runtime-exception.xml +0 -13
  143. data/test/reports/TEST-HammerCLI-Modules-load-a-module-success.xml +0 -15
  144. data/test/reports/TEST-HammerCLI-Modules-load-a-module.xml +0 -7
  145. data/test/reports/TEST-HammerCLI-Modules-load-all-modules.xml +0 -9
  146. data/test/reports/TEST-HammerCLI-Modules-names.xml +0 -13
  147. data/test/reports/TEST-HammerCLI-Modules.xml +0 -7
  148. data/test/reports/TEST-HammerCLI-OptionBuilderContainer.0.xml +0 -7
  149. data/test/reports/TEST-HammerCLI-OptionBuilderContainer.xml +0 -11
  150. data/test/reports/TEST-HammerCLI-Options-Normalizers-abstract.xml +0 -9
  151. data/test/reports/TEST-HammerCLI-Options-Normalizers-bool.xml +0 -31
  152. data/test/reports/TEST-HammerCLI-Options-Normalizers-datetime.xml +0 -17
  153. data/test/reports/TEST-HammerCLI-Options-Normalizers-enum.xml +0 -15
  154. data/test/reports/TEST-HammerCLI-Options-Normalizers-enumlist.xml +0 -21
  155. data/test/reports/TEST-HammerCLI-Options-Normalizers-json-input.xml +0 -15
  156. data/test/reports/TEST-HammerCLI-Options-Normalizers-key-value-list.xml +0 -17
  157. data/test/reports/TEST-HammerCLI-Options-Normalizers-list.xml +0 -15
  158. data/test/reports/TEST-HammerCLI-Options-Normalizers.xml +0 -7
  159. data/test/reports/TEST-HammerCLI-Options-OptionDefinition-context.xml +0 -9
  160. data/test/reports/TEST-HammerCLI-Options-OptionDefinition-formatters.xml +0 -11
  161. data/test/reports/TEST-HammerCLI-Options-OptionDefinition.xml +0 -7
  162. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-error-messages.xml +0 -15
  163. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-messages.xml +0 -11
  164. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-test-data-for-field.xml +0 -15
  165. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract.xml +0 -17
  166. data/test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection-show-ids.xml +0 -9
  167. data/test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection.xml +0 -27
  168. data/test/reports/TEST-HammerCLI-Output-Adapter-Base.xml +0 -7
  169. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-formatters.xml +0 -11
  170. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-collections.xml +0 -13
  171. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-containers.xml +0 -11
  172. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-ids.xml +0 -11
  173. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection.xml +0 -11
  174. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-message.xml +0 -11
  175. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues.xml +0 -7
  176. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-column-width.xml +0 -15
  177. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-formatters.xml +0 -11
  178. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-handle-ids.xml +0 -11
  179. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-sort-columns.xml +0 -9
  180. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection.xml +0 -11
  181. data/test/reports/TEST-HammerCLI-Output-Adapter-Table.xml +0 -7
  182. data/test/reports/TEST-HammerCLI-Output-Definition-empty-.xml +0 -11
  183. data/test/reports/TEST-HammerCLI-Output-Definition.xml +0 -11
  184. data/test/reports/TEST-HammerCLI-Output-Dsl-collection.xml +0 -13
  185. data/test/reports/TEST-HammerCLI-Output-Dsl-custom-fields.xml +0 -11
  186. data/test/reports/TEST-HammerCLI-Output-Dsl-fields.xml +0 -15
  187. data/test/reports/TEST-HammerCLI-Output-Dsl-label.xml +0 -13
  188. data/test/reports/TEST-HammerCLI-Output-Dsl-path-definition.xml +0 -13
  189. data/test/reports/TEST-HammerCLI-Output-Dsl.xml +0 -9
  190. data/test/reports/TEST-HammerCLI-Output-FieldFilter.xml +0 -13
  191. data/test/reports/TEST-HammerCLI-Output-Formatters-BooleanFormatter.xml +0 -11
  192. data/test/reports/TEST-HammerCLI-Output-Formatters-ColorFormatter.xml +0 -9
  193. data/test/reports/TEST-HammerCLI-Output-Formatters-DateFormatter.xml +0 -11
  194. data/test/reports/TEST-HammerCLI-Output-Formatters-FieldFormatter.xml +0 -13
  195. data/test/reports/TEST-HammerCLI-Output-Formatters-FormatterContainer.xml +0 -13
  196. data/test/reports/TEST-HammerCLI-Output-Formatters-FormatterLibrary.xml +0 -11
  197. data/test/reports/TEST-HammerCLI-Output-Formatters-KeyValueFormatter.xml +0 -13
  198. data/test/reports/TEST-HammerCLI-Output-Formatters-ListFormatter.xml +0 -13
  199. data/test/reports/TEST-HammerCLI-Output-Formatters-LongTextFormatter.xml +0 -13
  200. data/test/reports/TEST-HammerCLI-Output-Output-adapters.xml +0 -17
  201. data/test/reports/TEST-HammerCLI-Output-Output-data.xml +0 -15
  202. data/test/reports/TEST-HammerCLI-Output-Output-formatters.xml +0 -9
  203. data/test/reports/TEST-HammerCLI-Output-Output-messages.xml +0 -19
  204. data/test/reports/TEST-HammerCLI-Output-Output.xml +0 -7
  205. data/test/reports/TEST-HammerCLI-Output-RecordCollection.xml +0 -13
  206. data/test/reports/TEST-HammerCLI-Settings-load-from-paths.xml +0 -15
  207. data/test/reports/TEST-HammerCLI-Settings.xml +0 -25
  208. data/test/reports/TEST-HammerCLI-ShellHistory-loading-old-history.xml +0 -11
  209. data/test/reports/TEST-HammerCLI-ShellHistory-saving-history.xml +0 -15
  210. data/test/reports/TEST-HammerCLI-ShellHistory.xml +0 -7
  211. data/test/reports/TEST-MiniTest-Spec.xml +0 -7
  212. data/test/reports/TEST-String-camelize.xml +0 -11
  213. data/test/reports/TEST-String-formatting.xml +0 -17
  214. data/test/reports/TEST-String-indent.xml +0 -11
  215. data/test/reports/TEST-String-interactive-.xml +0 -13
  216. data/test/reports/TEST-String.xml +0 -7
  217. data/test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint-exist-.xml +0 -13
  218. data/test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint.xml +0 -7
  219. data/test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint-exist-.xml +0 -13
  220. data/test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint.xml +0 -7
  221. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-exist-.xml +0 -9
  222. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-rejected.xml +0 -13
  223. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-required.xml +0 -13
  224. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint.xml +0 -7
  225. data/test/reports/TEST-constraints.xml +0 -7
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.9.0
4
+ version: 0.10.0
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: 2016-12-15 00:00:00.000000000 Z
12
+ date: 2017-03-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
@@ -67,20 +67,6 @@ dependencies:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: table_print
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :runtime
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
70
  - !ruby/object:Gem::Dependency
85
71
  name: highline
86
72
  requirement: !ruby/object:Gem::Requirement
@@ -127,16 +113,16 @@ dependencies:
127
113
  name: apipie-bindings
128
114
  requirement: !ruby/object:Gem::Requirement
129
115
  requirements:
130
- - - "~>"
116
+ - - ">="
131
117
  - !ruby/object:Gem::Version
132
- version: 0.0.14
118
+ version: 0.0.19
133
119
  type: :runtime
134
120
  prerelease: false
135
121
  version_requirements: !ruby/object:Gem::Requirement
136
122
  requirements:
137
- - - "~>"
123
+ - - ">="
138
124
  - !ruby/object:Gem::Version
139
- version: 0.0.14
125
+ version: 0.0.19
140
126
  description: 'Hammer cli provides universal extendable CLI interface for ruby apps
141
127
 
142
128
  '
@@ -145,22 +131,22 @@ executables:
145
131
  - hammer
146
132
  extensions: []
147
133
  extra_rdoc_files:
148
- - doc/writing_a_plugin.md
149
134
  - doc/creating_apipie_commands.md
150
- - doc/developer_docs.md
151
- - doc/option_builders.md
152
- - doc/i18n.md
135
+ - doc/creating_commands.md
136
+ - doc/design.png
153
137
  - doc/design.uml
138
+ - doc/developer_docs.md
154
139
  - doc/development_tips.md
155
- - doc/release_notes.md
140
+ - doc/i18n.md
156
141
  - doc/installation.md
157
- - doc/creating_commands.md
158
- - doc/installation_rpm.md
159
- - doc/option_normalizers.md
160
- - doc/installation_source.md
161
142
  - doc/installation_deb.md
162
- - doc/design.png
163
143
  - doc/installation_gem.md
144
+ - doc/installation_rpm.md
145
+ - doc/installation_source.md
146
+ - doc/option_builders.md
147
+ - doc/option_normalizers.md
148
+ - doc/writing_a_plugin.md
149
+ - doc/release_notes.md
164
150
  - config/cli.modules.d/module_config_template.yml
165
151
  - config/cli_config.template.yml
166
152
  - README.md
@@ -196,6 +182,7 @@ files:
196
182
  - lib/hammer_cli/apipie/option_definition.rb
197
183
  - lib/hammer_cli/apipie/options.rb
198
184
  - lib/hammer_cli/apipie/resource.rb
185
+ - lib/hammer_cli/ca_cert_fetcher.rb
199
186
  - lib/hammer_cli/clamp.rb
200
187
  - lib/hammer_cli/completer.rb
201
188
  - lib/hammer_cli/connection.rb
@@ -216,7 +203,10 @@ files:
216
203
  - lib/hammer_cli/option_builder.rb
217
204
  - lib/hammer_cli/options/matcher.rb
218
205
  - lib/hammer_cli/options/normalizers.rb
206
+ - lib/hammer_cli/options/option_collector.rb
219
207
  - lib/hammer_cli/options/option_definition.rb
208
+ - lib/hammer_cli/options/sources/command_line.rb
209
+ - lib/hammer_cli/options/sources/saved_defaults.rb
220
210
  - lib/hammer_cli/output.rb
221
211
  - lib/hammer_cli/output/adapter.rb
222
212
  - lib/hammer_cli/output/adapter/abstract.rb
@@ -238,212 +228,31 @@ files:
238
228
  - lib/hammer_cli/output/utils.rb
239
229
  - lib/hammer_cli/settings.rb
240
230
  - lib/hammer_cli/shell.rb
231
+ - lib/hammer_cli/ssloptions.rb
241
232
  - lib/hammer_cli/subcommand.rb
242
- - lib/hammer_cli/table_print/column.rb
243
- - lib/hammer_cli/table_print/formatter.rb
244
233
  - lib/hammer_cli/testing/command_assertions.rb
245
234
  - lib/hammer_cli/testing/data_helpers.rb
246
235
  - lib/hammer_cli/testing/output_matchers.rb
247
236
  - lib/hammer_cli/utils.rb
248
237
  - lib/hammer_cli/validator.rb
249
238
  - lib/hammer_cli/version.rb
250
- - locale/Makefile
251
- - locale/README.md
252
239
  - locale/ca/LC_MESSAGES/hammer-cli.mo
253
- - locale/ca/hammer-cli.edit.po
254
- - locale/ca/hammer-cli.po
255
- - locale/ca/hammer-cli.po.time_stamp
256
240
  - locale/de/LC_MESSAGES/hammer-cli.mo
257
- - locale/de/hammer-cli.edit.po
258
- - locale/de/hammer-cli.po
259
- - locale/de/hammer-cli.po.time_stamp
260
241
  - locale/en/LC_MESSAGES/hammer-cli.mo
261
- - locale/en/hammer-cli.edit.po
262
- - locale/en/hammer-cli.po
263
- - locale/en/hammer-cli.po.time_stamp
264
242
  - locale/en_GB/LC_MESSAGES/hammer-cli.mo
265
- - locale/en_GB/hammer-cli.edit.po
266
- - locale/en_GB/hammer-cli.po
267
- - locale/en_GB/hammer-cli.po.time_stamp
268
243
  - locale/es/LC_MESSAGES/hammer-cli.mo
269
- - locale/es/hammer-cli.edit.po
270
- - locale/es/hammer-cli.po
271
- - locale/es/hammer-cli.po.time_stamp
272
244
  - locale/fr/LC_MESSAGES/hammer-cli.mo
273
- - locale/fr/hammer-cli.edit.po
274
- - locale/fr/hammer-cli.po
275
- - locale/fr/hammer-cli.po.time_stamp
276
- - locale/hammer-cli.pot
277
245
  - locale/it/LC_MESSAGES/hammer-cli.mo
278
- - locale/it/hammer-cli.edit.po
279
- - locale/it/hammer-cli.po
280
- - locale/it/hammer-cli.po.time_stamp
281
246
  - locale/ja/LC_MESSAGES/hammer-cli.mo
282
- - locale/ja/hammer-cli.edit.po
283
- - locale/ja/hammer-cli.po
284
- - locale/ja/hammer-cli.po.time_stamp
285
247
  - locale/ko/LC_MESSAGES/hammer-cli.mo
286
- - locale/ko/hammer-cli.edit.po
287
- - locale/ko/hammer-cli.po
288
- - locale/ko/hammer-cli.po.time_stamp
289
248
  - locale/pt_BR/LC_MESSAGES/hammer-cli.mo
290
- - locale/pt_BR/hammer-cli.edit.po
291
- - locale/pt_BR/hammer-cli.po
292
- - locale/pt_BR/hammer-cli.po.time_stamp
293
249
  - locale/ru/LC_MESSAGES/hammer-cli.mo
294
- - locale/ru/hammer-cli.edit.po
295
- - locale/ru/hammer-cli.po
296
- - locale/ru/hammer-cli.po.time_stamp
297
- - locale/zanata.xml
298
250
  - locale/zh_CN/LC_MESSAGES/hammer-cli.mo
299
- - locale/zh_CN/hammer-cli.edit.po
300
- - locale/zh_CN/hammer-cli.po
301
- - locale/zh_CN/hammer-cli.po.time_stamp
302
251
  - locale/zh_TW/LC_MESSAGES/hammer-cli.mo
303
- - locale/zh_TW/hammer-cli.edit.po
304
- - locale/zh_TW/hammer-cli.po
305
- - locale/zh_TW/hammer-cli.po.time_stamp
306
252
  - man/hammer.1.gz
307
253
  - test/functional/defaults_test.rb
308
254
  - test/functional/help_test.rb
309
255
  - test/functional/test_helper.rb
310
- - test/reports/TEST-Fields-ContainerField-display-.xml
311
- - test/reports/TEST-Fields-ContainerField-display-blank-is-allowed.xml
312
- - test/reports/TEST-Fields-ContainerField-display-blank-is-not-allowed.xml
313
- - test/reports/TEST-Fields-ContainerField.xml
314
- - test/reports/TEST-Fields-Field-display-.xml
315
- - test/reports/TEST-Fields-Field-display-blank-is-allowed.xml
316
- - test/reports/TEST-Fields-Field-display-blank-is-not-allowed.xml
317
- - test/reports/TEST-Fields-Field-hide-blank-.xml
318
- - test/reports/TEST-Fields-Field-parameters.xml
319
- - test/reports/TEST-Fields-Field.xml
320
- - test/reports/TEST-HammerCLI-AbstractCommand-build-options.xml
321
- - test/reports/TEST-HammerCLI-AbstractCommand-exception-handler.xml
322
- - test/reports/TEST-HammerCLI-AbstractCommand-logging.xml
323
- - test/reports/TEST-HammerCLI-AbstractCommand-option-builder.xml
324
- - test/reports/TEST-HammerCLI-AbstractCommand-options.xml
325
- - test/reports/TEST-HammerCLI-AbstractCommand-output.xml
326
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-remove-subcommand.xml
327
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand-.xml
328
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand.xml
329
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior.xml
330
- - test/reports/TEST-HammerCLI-AbstractCommand.xml
331
- - test/reports/TEST-HammerCLI-Apipie-Command-options.xml
332
- - test/reports/TEST-HammerCLI-Apipie-Command-resource-defined.xml
333
- - test/reports/TEST-HammerCLI-Apipie-Command-setting-resources.xml
334
- - test/reports/TEST-HammerCLI-Apipie-Command.xml
335
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-aliasing-resources.xml
336
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-filtering-options.xml
337
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-required-options.xml
338
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-correct-normalizers.xml
339
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-hash-params.xml
340
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-one-simple-param.xml
341
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder.xml
342
- - test/reports/TEST-HammerCLI-Completer-command-completion.xml
343
- - test/reports/TEST-HammerCLI-Completer-option-value-completion.xml
344
- - test/reports/TEST-HammerCLI-Completer-subcommand-completion.xml
345
- - test/reports/TEST-HammerCLI-Completer.xml
346
- - test/reports/TEST-HammerCLI-CompleterLine-line-complete.xml
347
- - test/reports/TEST-HammerCLI-CompleterLine-splitting-words.xml
348
- - test/reports/TEST-HammerCLI-CompleterLine.xml
349
- - test/reports/TEST-HammerCLI-CompleterWord-complete-.xml
350
- - test/reports/TEST-HammerCLI-CompleterWord-quote.xml
351
- - test/reports/TEST-HammerCLI-CompleterWord-quoted-.xml
352
- - test/reports/TEST-HammerCLI-CompleterWord.xml
353
- - test/reports/TEST-HammerCLI-Connection.xml
354
- - test/reports/TEST-HammerCLI-ExceptionHandler.xml
355
- - test/reports/TEST-HammerCLI-I18n.xml
356
- - test/reports/TEST-HammerCLI-MainCommand-loading-context-password.xml
357
- - test/reports/TEST-HammerCLI-MainCommand-loading-context-username.xml
358
- - test/reports/TEST-HammerCLI-MainCommand-loading-context-verbose.xml
359
- - test/reports/TEST-HammerCLI-MainCommand-loading-context.xml
360
- - test/reports/TEST-HammerCLI-MainCommand.xml
361
- - test/reports/TEST-HammerCLI-Modules-find-by-name.xml
362
- - test/reports/TEST-HammerCLI-Modules-load-a-module-module-not-found.xml
363
- - test/reports/TEST-HammerCLI-Modules-load-a-module-module-runtime-exception.xml
364
- - test/reports/TEST-HammerCLI-Modules-load-a-module-success.xml
365
- - test/reports/TEST-HammerCLI-Modules-load-a-module.xml
366
- - test/reports/TEST-HammerCLI-Modules-load-all-modules.xml
367
- - test/reports/TEST-HammerCLI-Modules-names.xml
368
- - test/reports/TEST-HammerCLI-Modules.xml
369
- - test/reports/TEST-HammerCLI-OptionBuilderContainer.0.xml
370
- - test/reports/TEST-HammerCLI-OptionBuilderContainer.xml
371
- - test/reports/TEST-HammerCLI-Options-Normalizers-abstract.xml
372
- - test/reports/TEST-HammerCLI-Options-Normalizers-bool.xml
373
- - test/reports/TEST-HammerCLI-Options-Normalizers-datetime.xml
374
- - test/reports/TEST-HammerCLI-Options-Normalizers-enum.xml
375
- - test/reports/TEST-HammerCLI-Options-Normalizers-enumlist.xml
376
- - test/reports/TEST-HammerCLI-Options-Normalizers-json-input.xml
377
- - test/reports/TEST-HammerCLI-Options-Normalizers-key-value-list.xml
378
- - test/reports/TEST-HammerCLI-Options-Normalizers-list.xml
379
- - test/reports/TEST-HammerCLI-Options-Normalizers.xml
380
- - test/reports/TEST-HammerCLI-Options-OptionDefinition-context.xml
381
- - test/reports/TEST-HammerCLI-Options-OptionDefinition-formatters.xml
382
- - test/reports/TEST-HammerCLI-Options-OptionDefinition.xml
383
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-error-messages.xml
384
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-messages.xml
385
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-test-data-for-field.xml
386
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract.xml
387
- - test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection-show-ids.xml
388
- - test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection.xml
389
- - test/reports/TEST-HammerCLI-Output-Adapter-Base.xml
390
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-formatters.xml
391
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-collections.xml
392
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-containers.xml
393
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-ids.xml
394
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection.xml
395
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-message.xml
396
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues.xml
397
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-column-width.xml
398
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-formatters.xml
399
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-handle-ids.xml
400
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-sort-columns.xml
401
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection.xml
402
- - test/reports/TEST-HammerCLI-Output-Adapter-Table.xml
403
- - test/reports/TEST-HammerCLI-Output-Definition-empty-.xml
404
- - test/reports/TEST-HammerCLI-Output-Definition.xml
405
- - test/reports/TEST-HammerCLI-Output-Dsl-collection.xml
406
- - test/reports/TEST-HammerCLI-Output-Dsl-custom-fields.xml
407
- - test/reports/TEST-HammerCLI-Output-Dsl-fields.xml
408
- - test/reports/TEST-HammerCLI-Output-Dsl-label.xml
409
- - test/reports/TEST-HammerCLI-Output-Dsl-path-definition.xml
410
- - test/reports/TEST-HammerCLI-Output-Dsl.xml
411
- - test/reports/TEST-HammerCLI-Output-FieldFilter.xml
412
- - test/reports/TEST-HammerCLI-Output-Formatters-BooleanFormatter.xml
413
- - test/reports/TEST-HammerCLI-Output-Formatters-ColorFormatter.xml
414
- - test/reports/TEST-HammerCLI-Output-Formatters-DateFormatter.xml
415
- - test/reports/TEST-HammerCLI-Output-Formatters-FieldFormatter.xml
416
- - test/reports/TEST-HammerCLI-Output-Formatters-FormatterContainer.xml
417
- - test/reports/TEST-HammerCLI-Output-Formatters-FormatterLibrary.xml
418
- - test/reports/TEST-HammerCLI-Output-Formatters-KeyValueFormatter.xml
419
- - test/reports/TEST-HammerCLI-Output-Formatters-ListFormatter.xml
420
- - test/reports/TEST-HammerCLI-Output-Formatters-LongTextFormatter.xml
421
- - test/reports/TEST-HammerCLI-Output-Output-adapters.xml
422
- - test/reports/TEST-HammerCLI-Output-Output-data.xml
423
- - test/reports/TEST-HammerCLI-Output-Output-formatters.xml
424
- - test/reports/TEST-HammerCLI-Output-Output-messages.xml
425
- - test/reports/TEST-HammerCLI-Output-Output.xml
426
- - test/reports/TEST-HammerCLI-Output-RecordCollection.xml
427
- - test/reports/TEST-HammerCLI-Settings-load-from-paths.xml
428
- - test/reports/TEST-HammerCLI-Settings.xml
429
- - test/reports/TEST-HammerCLI-ShellHistory-loading-old-history.xml
430
- - test/reports/TEST-HammerCLI-ShellHistory-saving-history.xml
431
- - test/reports/TEST-HammerCLI-ShellHistory.xml
432
- - test/reports/TEST-MiniTest-Spec.xml
433
- - test/reports/TEST-String-camelize.xml
434
- - test/reports/TEST-String-formatting.xml
435
- - test/reports/TEST-String-indent.xml
436
- - test/reports/TEST-String-interactive-.xml
437
- - test/reports/TEST-String.xml
438
- - test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint-exist-.xml
439
- - test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint.xml
440
- - test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint-exist-.xml
441
- - test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint.xml
442
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-exist-.xml
443
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-rejected.xml
444
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-required.xml
445
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint.xml
446
- - test/reports/TEST-constraints.xml
447
256
  - test/test_helper.rb
448
257
  - test/unit/abstract_test.rb
449
258
  - test/unit/apipie/api_connection_test.rb
@@ -468,10 +277,12 @@ files:
468
277
  - test/unit/main_test.rb
469
278
  - test/unit/modules_test.rb
470
279
  - test/unit/option_builder_test.rb
471
- - test/unit/options/field_filter_test.rb
472
280
  - test/unit/options/matcher_test.rb
473
281
  - test/unit/options/normalizers_test.rb
282
+ - test/unit/options/option_collector_test.rb
474
283
  - test/unit/options/option_definition_test.rb
284
+ - test/unit/options/sources/command_line_test.rb
285
+ - test/unit/options/sources/saved_defaults_test.rb
475
286
  - test/unit/output/adapter/abstract_test.rb
476
287
  - test/unit/output/adapter/base_test.rb
477
288
  - test/unit/output/adapter/csv_test.rb
@@ -480,6 +291,7 @@ files:
480
291
  - test/unit/output/adapter/yaml_test.rb
481
292
  - test/unit/output/definition_test.rb
482
293
  - test/unit/output/dsl_test.rb
294
+ - test/unit/output/field_filter_test.rb
483
295
  - test/unit/output/fields_test.rb
484
296
  - test/unit/output/formatters_test.rb
485
297
  - test/unit/output/output_test.rb
@@ -514,186 +326,52 @@ specification_version: 4
514
326
  summary: Universal command-line interface
515
327
  test_files:
516
328
  - test/functional/test_helper.rb
517
- - test/functional/help_test.rb
518
329
  - test/functional/defaults_test.rb
519
- - test/unit/modules_test.rb
520
- - test/unit/main_test.rb
521
- - test/unit/validator_test.rb
330
+ - test/functional/help_test.rb
331
+ - test/unit/apipie/option_definition_test.rb
332
+ - test/unit/apipie/option_builder_test.rb
333
+ - test/unit/apipie/command_test.rb
334
+ - test/unit/apipie/api_connection_test.rb
335
+ - test/unit/completer_test.rb
336
+ - test/unit/fixtures/apipie/architectures.json
337
+ - test/unit/fixtures/apipie/documented.json
338
+ - test/unit/fixtures/defaults/defaults_dashed.yml
339
+ - test/unit/fixtures/defaults/defaults.yml
340
+ - test/unit/fixtures/json_input/invalid.json
341
+ - test/unit/fixtures/json_input/valid.json
522
342
  - test/unit/history_test.rb
523
- - test/unit/exception_handler_test.rb
524
- - test/unit/i18n_test.rb
525
- - test/unit/settings_test.rb
526
- - test/unit/options/normalizers_test.rb
527
- - test/unit/options/field_filter_test.rb
343
+ - test/unit/main_test.rb
344
+ - test/unit/modules_test.rb
345
+ - test/unit/option_builder_test.rb
528
346
  - test/unit/options/matcher_test.rb
529
347
  - test/unit/options/option_definition_test.rb
530
- - test/unit/abstract_test.rb
531
- - test/unit/test_helper.rb
532
- - test/unit/connection_test.rb
533
- - test/unit/apipie/api_connection_test.rb
534
- - test/unit/apipie/command_test.rb
535
- - test/unit/apipie/option_builder_test.rb
536
- - test/unit/apipie/option_definition_test.rb
537
- - test/unit/output/formatters_test.rb
538
- - test/unit/output/output_test.rb
539
- - test/unit/output/adapter/table_test.rb
540
- - test/unit/output/adapter/json_test.rb
348
+ - test/unit/options/normalizers_test.rb
349
+ - test/unit/options/option_collector_test.rb
350
+ - test/unit/options/sources/command_line_test.rb
351
+ - test/unit/options/sources/saved_defaults_test.rb
541
352
  - test/unit/output/adapter/abstract_test.rb
542
353
  - test/unit/output/adapter/base_test.rb
543
- - test/unit/output/adapter/yaml_test.rb
544
354
  - test/unit/output/adapter/csv_test.rb
355
+ - test/unit/output/adapter/json_test.rb
356
+ - test/unit/output/adapter/yaml_test.rb
357
+ - test/unit/output/adapter/table_test.rb
358
+ - test/unit/output/definition_test.rb
545
359
  - test/unit/output/dsl_test.rb
360
+ - test/unit/output/output_test.rb
546
361
  - test/unit/output/record_collection_test.rb
362
+ - test/unit/output/formatters_test.rb
547
363
  - test/unit/output/fields_test.rb
548
- - test/unit/output/definition_test.rb
364
+ - test/unit/output/field_filter_test.rb
365
+ - test/unit/settings_test.rb
366
+ - test/unit/test_helper.rb
367
+ - test/unit/utils_test.rb
368
+ - test/unit/i18n_test.rb
549
369
  - test/unit/help/builder_test.rb
550
370
  - test/unit/help/text_builder_test.rb
551
- - test/unit/fixtures/json_input/invalid.json
552
- - test/unit/fixtures/json_input/valid.json
553
- - test/unit/fixtures/defaults/defaults_dashed.yml
554
- - test/unit/fixtures/defaults/defaults.yml
555
- - test/unit/fixtures/apipie/documented.json
556
- - test/unit/fixtures/apipie/architectures.json
557
- - test/unit/defaults_test.rb
558
- - test/unit/completer_test.rb
559
- - test/unit/option_builder_test.rb
560
- - test/unit/utils_test.rb
561
371
  - test/unit/logger_test.rb
372
+ - test/unit/connection_test.rb
373
+ - test/unit/exception_handler_test.rb
374
+ - test/unit/abstract_test.rb
375
+ - test/unit/defaults_test.rb
376
+ - test/unit/validator_test.rb
562
377
  - test/test_helper.rb
563
- - test/reports/TEST-String-indent.xml
564
- - test/reports/TEST-HammerCLI-AbstractCommand-logging.xml
565
- - test/reports/TEST-HammerCLI-Modules-find-by-name.xml
566
- - test/reports/TEST-HammerCLI-MainCommand-loading-context-verbose.xml
567
- - test/reports/TEST-HammerCLI-Output-Dsl-fields.xml
568
- - test/reports/TEST-HammerCLI-CompleterWord-complete-.xml
569
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-formatters.xml
570
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-formatters.xml
571
- - test/reports/TEST-HammerCLI-Completer-subcommand-completion.xml
572
- - test/reports/TEST-HammerCLI-Options-Normalizers-key-value-list.xml
573
- - test/reports/TEST-HammerCLI-Options-Normalizers-list.xml
574
- - test/reports/TEST-String.xml
575
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection.xml
576
- - test/reports/TEST-MiniTest-Spec.xml
577
- - test/reports/TEST-Fields-ContainerField-display-blank-is-not-allowed.xml
578
- - test/reports/TEST-HammerCLI-Modules-load-all-modules.xml
579
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-hash-params.xml
580
- - test/reports/TEST-HammerCLI-Modules-load-a-module.xml
581
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-required-options.xml
582
- - test/reports/TEST-HammerCLI-Options-Normalizers-datetime.xml
583
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior.xml
584
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-message.xml
585
- - test/reports/TEST-Fields-Field-display-.xml
586
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-rejected.xml
587
- - test/reports/TEST-HammerCLI-Output-Formatters-LongTextFormatter.xml
588
- - test/reports/TEST-HammerCLI-Options-Normalizers-bool.xml
589
- - test/reports/TEST-HammerCLI-Output-FieldFilter.xml
590
- - test/reports/TEST-HammerCLI-Modules-load-a-module-module-not-found.xml
591
- - test/reports/TEST-HammerCLI-Output-Output-messages.xml
592
- - test/reports/TEST-HammerCLI-I18n.xml
593
- - test/reports/TEST-HammerCLI-Options-Normalizers-enumlist.xml
594
- - test/reports/TEST-HammerCLI-Output-Dsl.xml
595
- - test/reports/TEST-HammerCLI-AbstractCommand-option-builder.xml
596
- - test/reports/TEST-HammerCLI-Completer.xml
597
- - test/reports/TEST-HammerCLI-Output-Output-formatters.xml
598
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-filtering-options.xml
599
- - test/reports/TEST-HammerCLI-Options-Normalizers-abstract.xml
600
- - test/reports/TEST-HammerCLI-AbstractCommand.xml
601
- - test/reports/TEST-HammerCLI-Modules-names.xml
602
- - test/reports/TEST-HammerCLI-Apipie-Command-options.xml
603
- - test/reports/TEST-HammerCLI-ShellHistory-saving-history.xml
604
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder.xml
605
- - test/reports/TEST-HammerCLI-Output-Formatters-FormatterContainer.xml
606
- - test/reports/TEST-String-camelize.xml
607
- - test/reports/TEST-Fields-ContainerField-display-.xml
608
- - test/reports/TEST-HammerCLI-AbstractCommand-options.xml
609
- - test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint-exist-.xml
610
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection.xml
611
- - test/reports/TEST-HammerCLI-MainCommand-loading-context.xml
612
- - test/reports/TEST-HammerCLI-Output-Formatters-KeyValueFormatter.xml
613
- - test/reports/TEST-HammerCLI-Options-Normalizers-json-input.xml
614
- - test/reports/TEST-HammerCLI-Output-Adapter-Base.xml
615
- - test/reports/TEST-HammerCLI-CompleterWord-quoted-.xml
616
- - test/reports/TEST-HammerCLI-CompleterWord-quote.xml
617
- - test/reports/TEST-HammerCLI-Output-Adapter-Table.xml
618
- - test/reports/TEST-HammerCLI-Options-OptionDefinition-formatters.xml
619
- - test/reports/TEST-HammerCLI-Output-Output-adapters.xml
620
- - test/reports/TEST-HammerCLI-Output-Output-data.xml
621
- - test/reports/TEST-HammerCLI-Modules.xml
622
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand.xml
623
- - test/reports/TEST-HammerCLI-OptionBuilderContainer.0.xml
624
- - test/reports/TEST-Fields-ContainerField.xml
625
- - test/reports/TEST-Fields-Field-display-blank-is-allowed.xml
626
- - test/reports/TEST-HammerCLI-AbstractCommand-exception-handler.xml
627
- - test/reports/TEST-String-formatting.xml
628
- - test/reports/TEST-HammerCLI-Output-Output.xml
629
- - test/reports/TEST-HammerCLI-Output-Dsl-collection.xml
630
- - test/reports/TEST-String-interactive-.xml
631
- - test/reports/TEST-HammerCLI-ShellHistory.xml
632
- - test/reports/TEST-HammerCLI-Output-Dsl-custom-fields.xml
633
- - test/reports/TEST-HammerCLI-Output-Formatters-FieldFormatter.xml
634
- - test/reports/TEST-HammerCLI-Options-OptionDefinition.xml
635
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint.xml
636
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-correct-normalizers.xml
637
- - test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint-exist-.xml
638
- - test/reports/TEST-HammerCLI-CompleterWord.xml
639
- - test/reports/TEST-Fields-ContainerField-display-blank-is-allowed.xml
640
- - test/reports/TEST-Fields-Field-parameters.xml
641
- - test/reports/TEST-HammerCLI-Settings-load-from-paths.xml
642
- - test/reports/TEST-HammerCLI-Connection.xml
643
- - test/reports/TEST-HammerCLI-Apipie-Command.xml
644
- - test/reports/TEST-HammerCLI-Output-Definition.xml
645
- - test/reports/TEST-HammerCLI-AbstractCommand-output.xml
646
- - test/reports/TEST-Fields-Field-display-blank-is-not-allowed.xml
647
- - test/reports/TEST-HammerCLI-CompleterLine.xml
648
- - test/reports/TEST-HammerCLI-MainCommand-loading-context-username.xml
649
- - test/reports/TEST-HammerCLI-Options-Normalizers.xml
650
- - test/reports/TEST-HammerCLI-Output-RecordCollection.xml
651
- - test/reports/TEST-HammerCLI-MainCommand-loading-context-password.xml
652
- - test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection-show-ids.xml
653
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-collections.xml
654
- - test/reports/TEST-HammerCLI-Output-Formatters-FormatterLibrary.xml
655
- - test/reports/TEST-Fields-Field-hide-blank-.xml
656
- - test/reports/TEST-HammerCLI-Output-Dsl-label.xml
657
- - test/reports/TEST-HammerCLI-Modules-load-a-module-module-runtime-exception.xml
658
- - test/reports/TEST-HammerCLI-Output-Formatters-DateFormatter.xml
659
- - test/reports/TEST-HammerCLI-Output-Formatters-ColorFormatter.xml
660
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-column-width.xml
661
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-error-messages.xml
662
- - test/reports/TEST-HammerCLI-AbstractCommand-build-options.xml
663
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-remove-subcommand.xml
664
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-ids.xml
665
- - test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint.xml
666
- - test/reports/TEST-HammerCLI-Completer-option-value-completion.xml
667
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-handle-ids.xml
668
- - test/reports/TEST-HammerCLI-Output-Definition-empty-.xml
669
- - test/reports/TEST-HammerCLI-ShellHistory-loading-old-history.xml
670
- - test/reports/TEST-HammerCLI-Settings.xml
671
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-containers.xml
672
- - test/reports/TEST-HammerCLI-ExceptionHandler.xml
673
- - test/reports/TEST-HammerCLI-Options-OptionDefinition-context.xml
674
- - test/reports/TEST-HammerCLI-Modules-load-a-module-success.xml
675
- - test/reports/TEST-HammerCLI-Apipie-Command-resource-defined.xml
676
- - test/reports/TEST-HammerCLI-Apipie-Command-setting-resources.xml
677
- - test/reports/TEST-HammerCLI-Output-Adapter-CSValues.xml
678
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-messages.xml
679
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-aliasing-resources.xml
680
- - test/reports/TEST-HammerCLI-Options-Normalizers-enum.xml
681
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-exist-.xml
682
- - test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-required.xml
683
- - test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand-.xml
684
- - test/reports/TEST-HammerCLI-CompleterLine-line-complete.xml
685
- - test/reports/TEST-HammerCLI-OptionBuilderContainer.xml
686
- - test/reports/TEST-HammerCLI-MainCommand.xml
687
- - test/reports/TEST-HammerCLI-Output-Dsl-path-definition.xml
688
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract.xml
689
- - test/reports/TEST-HammerCLI-Output-Adapter-Abstract-test-data-for-field.xml
690
- - test/reports/TEST-Fields-Field.xml
691
- - test/reports/TEST-HammerCLI-CompleterLine-splitting-words.xml
692
- - test/reports/TEST-HammerCLI-Output-Formatters-BooleanFormatter.xml
693
- - test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-sort-columns.xml
694
- - test/reports/TEST-HammerCLI-Completer-command-completion.xml
695
- - test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint.xml
696
- - test/reports/TEST-HammerCLI-Output-Formatters-ListFormatter.xml
697
- - test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection.xml
698
- - test/reports/TEST-constraints.xml
699
- - test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-one-simple-param.xml
@@ -1,19 +0,0 @@
1
- require 'hammer_cli/output/utils'
2
-
3
- module TablePrint
4
- class Column
5
- def data_width
6
- if multibyte_count
7
- [
8
- HammerCLI::Output::Utils.real_length(name),
9
- Array(data).compact.collect(&:to_s).collect{|m| HammerCLI::Output::Utils.real_length(m) }.max
10
- ].compact.max || 0
11
- else
12
- [
13
- name.length,
14
- Array(data).compact.collect(&:to_s).collect(&:length).max
15
- ].compact.max || 0
16
- end
17
- end
18
- end
19
- end
@@ -1,18 +0,0 @@
1
- require 'hammer_cli/output/utils'
2
-
3
- module TablePrint
4
- class FixedWidthFormatter
5
- def format(value)
6
- value = value.to_s
7
- padding = width - HammerCLI::Output::Utils.real_length(value)
8
- if padding >= 0
9
- value += (" " * padding)
10
- else
11
- value, real_length = HammerCLI::Output::Utils.real_truncate(value, width-3)
12
- value += '...'
13
- value += ' ' if real_length < (width - 3)
14
- end
15
- value
16
- end
17
- end
18
- end
data/locale/Makefile DELETED
@@ -1,57 +0,0 @@
1
- #
2
- # Makefile for PO merging and MO generation. More info in the README.
3
- #
4
- # make all-mo (default) - generate MO files
5
- # make check - check translations using translate-tool
6
- # make tx-update - download and merge translations from Transifex
7
- # make clean - clean everything
8
- #
9
- DOMAIN = hammer-cli
10
- VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load("../hammer_cli.gemspec");puts spec.version')
11
- POTFILE = $(DOMAIN).pot
12
- MOFILE = $(DOMAIN).mo
13
- POFILES = $(shell find . -name '$(DOMAIN).po')
14
- MOFILES = $(patsubst %.po,%.mo,$(POFILES))
15
- POXFILES = $(patsubst %.po,%.pox,$(POFILES))
16
- EDITFILES = $(patsubst %.po,%.edit.po,$(POFILES))
17
-
18
- %.mo: %.po
19
- mkdir -p $(shell dirname $@)/LC_MESSAGES
20
- msgfmt -o $(shell dirname $@)/LC_MESSAGES/$(MOFILE) $<
21
-
22
- # Generate MO files from PO files
23
- all-mo: $(MOFILES)
24
-
25
- # Check for malformed strings
26
- %.pox: %.po
27
- msgfmt -c $<
28
- pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
29
- -t endwhitespace -t endpunc -t puncspacing -t options -t printf -t validchars --gnome $< > $@
30
- cat $@
31
- ! grep -q msgid $@
32
-
33
- check: $(POXFILES)
34
-
35
- # Unify duplicate translations
36
- uniq-po:
37
- for f in $(shell find ./ -name "*.po") ; do \
38
- msguniq $$f -o $$f ; \
39
- done
40
-
41
- tx-pull: $(EDITFILES)
42
- tx pull -f
43
- for f in $(POFILES) ; do \
44
- sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
45
- done
46
-
47
- # Extract strings and update the .pot, prepare .edit.po files
48
- extract-strings:
49
- bundle exec rake gettext:find
50
-
51
- # Merge .edit.po into .po
52
- update-po:
53
- bundle exec rake gettext:find
54
-
55
- tx-update: extract-strings tx-pull $(MOFILES)
56
- git commit -m "i18n - extracting new, pulling from tx" ../locale
57
- -echo Changes commited!