hammer_cli 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,364 +0,0 @@
1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli package.
4
- #
5
- # Translators:
6
- # Automatically generated, 2014
7
- # tchuang <tchuang@redhat.com>, 2015. #zanata
8
- msgid ""
9
- msgstr ""
10
- "Project-Id-Version: hammer-cli 0.9.0\n"
11
- "Report-Msgid-Bugs-To: \n"
12
- "PO-Revision-Date: 2015-04-28 05:21+0000\n"
13
- "Last-Translator: tchuang <tchuang@redhat.com>\n"
14
- "Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/foreman/l"
15
- "anguage/zh_TW/)\n"
16
- "Language: zh-TW\n"
17
- "MIME-Version: 1.0\n"
18
- "Content-Type: text/plain; charset=UTF-8\n"
19
- "Content-Transfer-Encoding: 8bit\n"
20
- "Plural-Forms: nplurals=1; plural=0;\n"
21
- "X-Generator: Zanata 3.6.0\n"
22
-
23
- msgid "too many arguments"
24
- msgstr "引數過多"
25
-
26
- msgid "option '%<option>s' is required"
27
- msgstr "需要使用 '%<option>s' 選項"
28
-
29
- msgid "option '%<option>s' (or env %<env>s) is required"
30
- msgstr "需要使用 '%<option>s'(或是 %<env>s 環境)選項"
31
-
32
- msgid "option '%<switch>s': %<message>s"
33
- msgstr "選項 '%<switch>s':%<message>s"
34
-
35
- msgid "parameter '%<param>s': %<message>s"
36
- msgstr "參數 '%<param>s':%<message>s"
37
-
38
- msgid "%<env>s: %<message>s"
39
- msgstr "%<env>s:%<message>s"
40
-
41
- msgid "Unrecognised option '%<switch>s'"
42
- msgstr "無法辨識的選項 '%<switch>s'"
43
-
44
- msgid "No such sub-command '%<name>s'"
45
- msgstr "此類型的次指令不存在:'%<name>s'"
46
-
47
- msgid "no value provided"
48
- msgstr "未提供值"
49
-
50
- msgid "Couldn't create %s. Please create the directory before setting defaults."
51
- msgstr ""
52
-
53
- msgid "Defaults management"
54
- msgstr ""
55
-
56
- msgid "List all the providers"
57
- msgstr ""
58
-
59
- msgid "Provider"
60
- msgstr ""
61
-
62
- msgid "Supported defaults"
63
- msgstr ""
64
-
65
- msgid "Description"
66
- msgstr ""
67
-
68
- msgid "List all the default parameters"
69
- msgstr ""
70
-
71
- msgid "Parameter"
72
- msgstr ""
73
-
74
- msgid "Value"
75
- msgstr ""
76
-
77
- msgid "Delete a default param"
78
- msgstr ""
79
-
80
- msgid "The name of the default option"
81
- msgstr ""
82
-
83
- msgid "Add a default parameter to config"
84
- msgstr ""
85
-
86
- msgid "The name of the default option (e.g. organization_id)."
87
- msgstr ""
88
-
89
- msgid "The value for the default option"
90
- msgstr ""
91
-
92
- msgid ""
93
- "The name of the provider providing the value. For list available providers see"
94
- " `hammer defaults providers`."
95
- msgstr ""
96
-
97
- msgid ""
98
- "Added %{key_val} default-option with value that will be generated from the ser"
99
- "ver."
100
- msgstr ""
101
-
102
- msgid "Added %{key_val} default-option with value %{val_val}."
103
- msgstr ""
104
-
105
- msgid ""
106
- "Provider %{name} was not found. See `hammer defaults providers` for available "
107
- "providers."
108
- msgstr ""
109
-
110
- msgid ""
111
- "The param name is not supported by provider. See `hammer defaults providers` f"
112
- "or supported params."
113
- msgstr ""
114
-
115
- msgid "%{param} was deleted successfully."
116
- msgstr ""
117
-
118
- msgid "You must specify value or a provider name, can't specify both."
119
- msgstr ""
120
-
121
- msgid "Couldn't find the requested param in %s."
122
- msgstr ""
123
-
124
- msgid "Error: %s"
125
- msgstr "錯誤:%s"
126
-
127
- msgid "Error: %{message}"
128
- msgstr "錯誤:%{message}"
129
-
130
- msgid "See: '%{path} --help'"
131
- msgstr "請參閱:'%{path} --help'"
132
-
133
- msgid "Could not load the API description from the server"
134
- msgstr "無法從伺服器載入 API 描述"
135
-
136
- msgid "is the server down?"
137
- msgstr "伺服器是否沒有在運作?"
138
-
139
- msgid ""
140
- "was '%s' run on the server when using apipie cache? (typical production settin"
141
- "gs)"
142
- msgstr "使用 apipie 快取時 '%s' 是否有在伺服器上運作?(典型的生產設定)"
143
-
144
- msgid "Missing arguments for %s"
145
- msgstr "%s 缺少了引數"
146
-
147
- msgid "No permissions to create log dir %s"
148
- msgstr "沒有建立日誌目錄 %s 的權限"
149
-
150
- msgid "File %s not writeable, won't log anything to the file!"
151
- msgstr "%s 檔案不允許寫入,將不會記錄任何資料至此檔案中!"
152
-
153
- msgid "be verbose"
154
- msgstr "詳細提供資料"
155
-
156
- msgid "show debugging output "
157
- msgstr "顯示除錯輸出"
158
-
159
- msgid "force reload of Apipie cache"
160
- msgstr "強制重新載入 Apipie 快取"
161
-
162
- msgid "path to custom config file"
163
- msgstr "自訂配置檔案的路徑"
164
-
165
- msgid "username to access the remote system"
166
- msgstr "用來存取遠端系統的使用者名稱"
167
-
168
- msgid "password to access the remote system"
169
- msgstr "用來存取遠端系統的密碼"
170
-
171
- msgid "remote system address"
172
- msgstr "遠端系統位址"
173
-
174
- msgid "show version"
175
- msgstr "顯示版本"
176
-
177
- msgid "unknown version"
178
- msgstr "不明的版本"
179
-
180
- msgid "Show ids of associated resources"
181
- msgstr "顯示相聯資源的 id"
182
-
183
- msgid "Explicitly turn interactive mode on/off"
184
- msgstr "明確開啓或關閉互動式模式"
185
-
186
- msgid "Output as CSV (same as --output=csv)"
187
- msgstr "輸出為 CSV(與 --output=csv 相同)"
188
-
189
- msgid "Set output format. One of [%s]"
190
- msgstr "設定輸出模式。[%s] 之一"
191
-
192
- msgid "Character to separate the values"
193
- msgstr "用來隔開值的字元"
194
-
195
- msgid "Get list of possible endings"
196
- msgstr "取得一列可能的結尾"
197
-
198
- msgid ""
199
- "Legacy configuration of modules detected. Check section about configuration in"
200
- " user manual"
201
- msgstr "偵測到了舊式的模組配置。請查看使用者指南中的配置部分"
202
-
203
- msgid "Warning: An error occured while loading module %s"
204
- msgstr "警告:載入 %s 模組時發生了錯誤"
205
-
206
- msgid "Error: Some of the required modules are disabled in configuration: %s "
207
- msgstr "錯誤:某些必要的模組在配置中已停用:%s "
208
-
209
- msgid "Comma-separated list of key=value."
210
- msgstr "逗號區隔開的一列 key=value。"
211
-
212
- msgid "value must be defined as a comma-separated list of key=value or valid JSON"
213
- msgstr ""
214
-
215
- msgid "Missing or stray quote."
216
- msgstr ""
217
-
218
- msgid ""
219
- "Unquoted fields do not allow
220
  or \n"
221
- "."
222
- msgstr ""
223
-
224
- msgid "Illegal quoting."
225
- msgstr ""
226
-
227
- msgid "Unclosed quoted field."
228
- msgstr ""
229
-
230
- msgid "Field size exceeded."
231
- msgstr ""
232
-
233
- msgid ""
234
- "Comma separated list of values. Values containing comma should be double quote"
235
- "d"
236
- msgstr ""
237
-
238
- msgid "numeric value is required"
239
- msgstr ""
240
-
241
- msgid "One of true/false, yes/no, 1/0."
242
- msgstr "true/false、yes/no、1/0 之一。"
243
-
244
- msgid "value must be one of true/false, yes/no, 1/0"
245
- msgstr "值必須是 true/false、yes/no、1/0 之一"
246
-
247
- msgid "Unable to parse JSON input"
248
- msgstr "無法叵析 JSON 輸入"
249
-
250
- msgid "Possible value(s): %s"
251
- msgstr ""
252
-
253
- #, fuzzy
254
- msgid "value must be %s"
255
- msgstr "值必須是「%s」之一"
256
-
257
- #, fuzzy
258
- msgid "value must be one of %s"
259
- msgstr "值必須是「%s」之一"
260
-
261
- msgid "Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format"
262
- msgstr "日期與時間,格式為 YYYY-MM-DD HH:MM:SS 或是 ISO 8601 格式"
263
-
264
- msgid "'%s' is not a valid date"
265
- msgstr "「%s」不是個有效的日期"
266
-
267
- msgid "Any combination (comma separated list) of '%s'"
268
- msgstr "任何(以逗號隔開的)「%s」的組合"
269
-
270
- msgid "value must be a combination of '%s'"
271
- msgstr "值必須是「%s」的組合"
272
-
273
- msgid "Warning: Option %{option} is deprecated. %{message}"
274
- msgstr ""
275
-
276
- msgid "Deprecated: %{deprecated_msg}"
277
- msgstr ""
278
-
279
- msgid "%{flag} is deprecated: %{deprecated_msg}"
280
- msgstr ""
281
-
282
- msgid "Can be specified multiple times. "
283
- msgstr "可指定多次。"
284
-
285
- msgid "Default: "
286
- msgstr "預設值:"
287
-
288
- msgid ", or "
289
- msgstr ",或是"
290
-
291
- msgid "Message"
292
- msgstr "訊息"
293
-
294
- msgid "Id"
295
- msgstr "ID"
296
-
297
- msgid "Name"
298
- msgstr "名稱"
299
-
300
- msgid "Page %{page} of %{total} (use --page and --per-page for navigation)"
301
- msgstr ""
302
-
303
- msgid "no"
304
- msgstr "否"
305
-
306
- msgid "yes"
307
- msgstr "是"
308
-
309
- msgid ""
310
- "Warning: location hammer.modules.d is deprecated, move your module configurati"
311
- "ons to cli.modules.d"
312
- msgstr "警告:hammer.modules.d 這個位置已淘汰使用,請將您的模組配置移至 cli.modules.d"
313
-
314
- msgid "Warning: Couldn't load configuration file %{path}: %{message}"
315
- msgstr ""
316
-
317
- msgid "Print help for commands"
318
- msgstr "印出指令的說明"
319
-
320
- msgid "Exit interactive shell"
321
- msgstr "退出互動式 shell"
322
-
323
- msgid "Welcome to the hammer interactive shell"
324
- msgstr "歡迎使用 hammer 互動式 shell"
325
-
326
- msgid "Type 'help' for usage information"
327
- msgstr "請輸入「help」以查看使用說明"
328
-
329
- msgid "Interactive shell"
330
- msgstr "互動式 shell"
331
-
332
- msgid ""
333
- "can't replace subcommand %<name>s (%<existing_class>s) with %<name>s (%<new_cl"
334
- "ass>s)"
335
- msgstr "無法將次指令 %<name>s (%<existing_class>s) 替換為 %<name>s (%<new_class>s)"
336
-
337
- msgid "Unknown option name '%s'"
338
- msgstr "不明選項名稱「%s」"
339
-
340
- msgid "You can't set all options %s at one time"
341
- msgstr "您不可一次將所有選項設為 %s"
342
-
343
- msgid "Options %s are required"
344
- msgstr "%s 選項乃必要的"
345
-
346
- #, fuzzy
347
- msgid "You can't set option %s"
348
- msgstr "您不可將任何選項設為 %s"
349
-
350
- #, fuzzy
351
- msgid "Option %s is required"
352
- msgstr "%s 選項乃必要的"
353
-
354
- msgid "You can't set any of options %s"
355
- msgstr "您不可將任何選項設為 %s"
356
-
357
- msgid "At least one of options %s is required"
358
- msgstr "需要至少一項 %s 選項"
359
-
360
- #, fuzzy
361
- msgid "One of options %s is required"
362
- msgstr "需要至少一項 %s 選項"
363
-
364
- msgid "Only one of options %s can be set"
365
- msgstr ""
File without changes
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::ContainerField::display?" tests="0" time="0.000195743" failures="0" errors="0" skipped="0" assertions="0">
3
- <system-out>
4
- </system-out>
5
- <system-err>
6
- </system-err>
7
- </testsuite>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::ContainerField::display?::blank is allowed" tests="4" time="0.000514044" failures="0" errors="0" skipped="0" assertions="4">
3
- <testcase name="test_0001_returns false the value is nil" time="0.000160735" assertions="1">
4
- </testcase>
5
- <testcase name="test_0003_returns false the value is empty hash" time="5.924e-05" assertions="1">
6
- </testcase>
7
- <testcase name="test_0004_returns true when there is some data under the path" time="5.1533e-05" assertions="1">
8
- </testcase>
9
- <testcase name="test_0002_returns false the value is empty array" time="4.7909e-05" assertions="1">
10
- </testcase>
11
- <system-out>
12
- </system-out>
13
- <system-err>
14
- </system-err>
15
- </testsuite>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::ContainerField::display?::blank is not allowed" tests="4" time="0.00050542" failures="0" errors="0" skipped="0" assertions="4">
3
- <testcase name="test_0001_returns false the value is nil" time="0.000104095" assertions="1">
4
- </testcase>
5
- <testcase name="test_0004_returns true when there is some data under the path" time="5.5074e-05" assertions="1">
6
- </testcase>
7
- <testcase name="test_0002_returns false the value is empty array" time="4.9163e-05" assertions="1">
8
- </testcase>
9
- <testcase name="test_0003_returns false the value is empty hash" time="4.4524e-05" assertions="1">
10
- </testcase>
11
- <system-out>
12
- </system-out>
13
- <system-err>
14
- </system-err>
15
- </testsuite>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::ContainerField" tests="0" time="0.000180394" failures="0" errors="0" skipped="0" assertions="0">
3
- <system-out>
4
- </system-out>
5
- <system-err>
6
- </system-err>
7
- </testsuite>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::Field::display?" tests="0" time="0.000177184" failures="0" errors="0" skipped="0" assertions="0">
3
- <system-out>
4
- </system-out>
5
- <system-err>
6
- </system-err>
7
- </testsuite>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::Field::display?::blank is allowed" tests="2" time="0.000346718" failures="0" errors="0" skipped="0" assertions="2">
3
- <testcase name="test_0002_returns true when there is some data under the path" time="9.5291e-05" assertions="1">
4
- </testcase>
5
- <testcase name="test_0001_returns false the value is nil" time="5.3478e-05" assertions="1">
6
- </testcase>
7
- <system-out>
8
- </system-out>
9
- <system-err>
10
- </system-err>
11
- </testsuite>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::Field::display?::blank is not allowed" tests="2" time="0.000332031" failures="0" errors="0" skipped="0" assertions="2">
3
- <testcase name="test_0002_returns true when there is some data under the path" time="8.2527e-05" assertions="1">
4
- </testcase>
5
- <testcase name="test_0001_returns false the value is nil" time="5.4331e-05" assertions="1">
6
- </testcase>
7
- <system-out>
8
- </system-out>
9
- <system-err>
10
- </system-err>
11
- </testsuite>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::Field::hide_blank?" tests="2" time="0.000327248" failures="0" errors="0" skipped="0" assertions="2">
3
- <testcase name="test_0001_defaults to false" time="7.399e-05" assertions="1">
4
- </testcase>
5
- <testcase name="test_0002_can be set to true in the constructor" time="5.3648e-05" assertions="1">
6
- </testcase>
7
- <system-out>
8
- </system-out>
9
- <system-err>
10
- </system-err>
11
- </testsuite>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::Field::parameters" tests="1" time="0.000281758" failures="0" errors="0" skipped="0" assertions="1">
3
- <testcase name="test_0001_returns all parameters passed to a filed" time="0.00010987" assertions="1">
4
- </testcase>
5
- <system-out>
6
- </system-out>
7
- <system-err>
8
- </system-err>
9
- </testsuite>
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::Field" tests="3" time="0.000378872" failures="0" errors="0" skipped="0" assertions="3">
3
- <testcase name="test_0001_stores label from constructor" time="8.5904e-05" assertions="1">
4
- </testcase>
5
- <testcase name="test_0002_stores path from constructor" time="5.3075e-05" assertions="1">
6
- </testcase>
7
- <testcase name="test_0003_default path should be empty array" time="4.294e-05" assertions="1">
8
- </testcase>
9
- <system-out>
10
- </system-out>
11
- <system-err>
12
- </system-err>
13
- </testsuite>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::build options" tests="4" time="0.001351635" failures="0" errors="0" skipped="0" assertions="4">
3
- <testcase name="test_0004_accepts block" time="0.000477899" assertions="1">
4
- </testcase>
5
- <testcase name="test_0003_passes params to the builders" time="0.00028496" assertions="1">
6
- </testcase>
7
- <testcase name="test_0002_should skip options that already exist" time="0.000216207" assertions="1">
8
- </testcase>
9
- <testcase name="test_0001_should use option builder" time="0.000177748" assertions="1">
10
- </testcase>
11
- <system-out>
12
- </system-out>
13
- <system-err>
14
- </system-err>
15
- </testsuite>
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::exception handler" tests="3" time="0.001065241" failures="0" errors="0" skipped="0" assertions="5">
3
- <testcase name="test_0003_should return instance of exception handler class defined deeper in a module hierrarchy" time="0.00029177" assertions="2">
4
- </testcase>
5
- <testcase name="test_0002_should return instance of exception handler class defined in a module" time="0.000228844" assertions="2">
6
- </testcase>
7
- <testcase name="test_0001_should return instance of hammer cli exception handler by default" time="0.000359925" assertions="1">
8
- </testcase>
9
- <system-out>
10
- </system-out>
11
- <system-err>
12
- </system-err>
13
- </testsuite>
@@ -1,21 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::logging" tests="7" time="0.005629746" failures="0" errors="0" skipped="0" assertions="12">
3
- <testcase name="test_0007_should have logger.watch colorized output switch in settings" time="0.001215608" assertions="2">
4
- </testcase>
5
- <testcase name="test_0003_should have logger named by the class by default" time="0.00071257" assertions="2">
6
- </testcase>
7
- <testcase name="test_0002_password should be hidden in logs" time="0.000708892" assertions="1">
8
- </testcase>
9
- <testcase name="test_0004_should have logger that accepts custom name" time="0.000841507" assertions="2">
10
- </testcase>
11
- <testcase name="test_0005_should have logger that can inspect object" time="0.000748318" assertions="2">
12
- </testcase>
13
- <testcase name="test_0001_should log what has been executed" time="0.000352436" assertions="1">
14
- </testcase>
15
- <testcase name="test_0006_should have logger.watch output without colors" time="0.000799178" assertions="2">
16
- </testcase>
17
- <system-out>
18
- </system-out>
19
- <system-err>
20
- </system-err>
21
- </testsuite>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::option builder" tests="2" time="0.000349776" failures="0" errors="0" skipped="0" assertions="2">
3
- <testcase name="test_0001_uses builder container as default" time="9.1626e-05" assertions="1">
4
- </testcase>
5
- <testcase name="test_0002_Default builder container is empty" time="4.5179e-05" assertions="1">
6
- </testcase>
7
- <system-out>
8
- </system-out>
9
- <system-err>
10
- </system-err>
11
- </testsuite>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::options" tests="2" time="0.000433705" failures="0" errors="0" skipped="0" assertions="2">
3
- <testcase name="test_0002_should set options' formatters" time="0.000197632" assertions="1">
4
- </testcase>
5
- <testcase name="test_0001_should create instances of hammer options" time="5.6937e-05" assertions="1">
6
- </testcase>
7
- <system-out>
8
- </system-out>
9
- <system-err>
10
- </system-err>
11
- </testsuite>
@@ -1,19 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::output" tests="6" time="0.000637574" failures="0" errors="0" skipped="0" assertions="6">
3
- <testcase name="test_0006_can define fields" time="0.000126013" assertions="1">
4
- </testcase>
5
- <testcase name="test_0005_can append existing definition without passing a block" time="6.2427e-05" assertions="1">
6
- </testcase>
7
- <testcase name="test_0001_should define adapter" time="5.3792e-05" assertions="1">
8
- </testcase>
9
- <testcase name="test_0004_can append existing definition" time="5.6941e-05" assertions="1">
10
- </testcase>
11
- <testcase name="test_0002_should provide instance of output with default adapter set" time="5.4734e-05" assertions="1">
12
- </testcase>
13
- <testcase name="test_0003_should hold instance of output definition" time="5.7944e-05" assertions="1">
14
- </testcase>
15
- <system-out>
16
- </system-out>
17
- <system-err>
18
- </system-err>
19
- </testsuite>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::subcommand behavior::remove_subcommand" tests="2" time="0.001167359" failures="0" errors="0" skipped="0" assertions="2">
3
- <testcase name="test_0002_should write a message to log when removing subcommand" time="0.000669956" assertions="1">
4
- </testcase>
5
- <testcase name="test_0001_should remove the subcommand" time="0.000316383" assertions="1">
6
- </testcase>
7
- <system-out>
8
- </system-out>
9
- <system-err>
10
- </system-err>
11
- </testsuite>
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::subcommand behavior::subcommand!" tests="3" time="0.001481618" failures="0" errors="0" skipped="0" assertions="10">
3
- <testcase name="test_0001_should replace commands with the same name" time="0.000501831" assertions="4">
4
- </testcase>
5
- <testcase name="test_0003_should add the subcommand" time="0.000336002" assertions="4">
6
- </testcase>
7
- <testcase name="test_0002_should write a message to log when replacing subcommand" time="0.00044575" assertions="2">
8
- </testcase>
9
- <system-out>
10
- </system-out>
11
- <system-err>
12
- </system-err>
13
- </testsuite>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::subcommand behavior::subcommand" tests="2" time="0.000599816" failures="0" errors="0" skipped="0" assertions="5">
3
- <testcase name="test_0001_should throw an exception for conflicting commands" time="0.000221174" assertions="1">
4
- </testcase>
5
- <testcase name="test_0002_should add the subcommand" time="0.000199028" assertions="4">
6
- </testcase>
7
- <system-out>
8
- </system-out>
9
- <system-err>
10
- </system-err>
11
- </testsuite>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand::subcommand behavior" tests="0" time="0.000161068" failures="0" errors="0" skipped="0" assertions="0">
3
- <system-out>
4
- </system-out>
5
- <system-err>
6
- </system-err>
7
- </testsuite>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::AbstractCommand" tests="2" time="0.00037477" failures="0" errors="0" skipped="0" assertions="2">
3
- <testcase name="test_0001_should inherit command_name" time="9.8291e-05" assertions="1">
4
- </testcase>
5
- <testcase name="test_0002_should inherit output definition" time="0.000103826" assertions="1">
6
- </testcase>
7
- <system-out>
8
- </system-out>
9
- <system-err>
10
- </system-err>
11
- </testsuite>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="HammerCLI::Apipie::Command::options" tests="2" time="0.000493282" failures="0" errors="0" skipped="0" assertions="2">
3
- <testcase name="test_0001_should collect method options from given options" time="0.000190569" assertions="1">
4
- </testcase>
5
- <testcase name="test_0002_should collect method options from methods" time="0.000108589" assertions="1">
6
- </testcase>
7
- <system-out>
8
- </system-out>
9
- <system-err>
10
- </system-err>
11
- </testsuite>