hammer_cli 0.1.1 → 0.1.2

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 (180) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/bin/hammer +6 -0
  4. data/config/cli_config.template.yml +3 -0
  5. data/doc/creating_commands.md +19 -0
  6. data/doc/i18n.md +15 -0
  7. data/doc/installation.md +1 -1
  8. data/doc/release_notes.md +61 -0
  9. data/lib/hammer_cli/abstract.rb +10 -37
  10. data/lib/hammer_cli/apipie/command.rb +10 -6
  11. data/lib/hammer_cli/apipie/option_builder.rb +26 -13
  12. data/lib/hammer_cli/apipie/options.rb +12 -10
  13. data/lib/hammer_cli/completer.rb +2 -2
  14. data/lib/hammer_cli/exception_handler.rb +5 -4
  15. data/lib/hammer_cli/exceptions.rb +1 -0
  16. data/lib/hammer_cli/i18n.rb +41 -0
  17. data/lib/hammer_cli/main.rb +2 -2
  18. data/lib/hammer_cli/options/normalizers.rb +31 -0
  19. data/lib/hammer_cli/output/adapter/abstract.rb +5 -1
  20. data/lib/hammer_cli/output/adapter/csv.rb +140 -12
  21. data/lib/hammer_cli/shell.rb +6 -6
  22. data/lib/hammer_cli/subcommand.rb +82 -0
  23. data/lib/hammer_cli/utils.rb +13 -0
  24. data/lib/hammer_cli/version.rb +1 -1
  25. data/locale/Makefile +11 -10
  26. data/locale/README.md +18 -0
  27. data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
  28. data/locale/en/hammer-cli.po +227 -0
  29. data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
  30. data/locale/en_GB/hammer-cli.po +274 -0
  31. data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
  32. data/locale/es/hammer-cli.po +275 -0
  33. data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
  34. data/locale/fr/hammer-cli.po +276 -0
  35. data/locale/hammer-cli.pot +158 -93
  36. data/test/reports/TEST-Fields-ContainerField-display-.xml +7 -0
  37. data/test/reports/TEST-Fields-ContainerField-display-blank-is-allowed.xml +15 -0
  38. data/test/reports/TEST-Fields-ContainerField-display-blank-is-not-allowed.xml +15 -0
  39. data/test/reports/TEST-Fields-ContainerField.xml +7 -0
  40. data/test/reports/TEST-Fields-Field-display-.xml +7 -0
  41. data/test/reports/TEST-Fields-Field-display-blank-is-allowed.xml +11 -0
  42. data/test/reports/TEST-Fields-Field-display-blank-is-not-allowed.xml +11 -0
  43. data/test/reports/TEST-Fields-Field-hide-blank-.xml +11 -0
  44. data/test/reports/TEST-Fields-Field-parameters.xml +9 -0
  45. data/test/reports/TEST-Fields-Field.xml +13 -0
  46. data/test/reports/TEST-HammerCLI-AbstractCommand-build-options.xml +15 -0
  47. data/test/reports/TEST-HammerCLI-AbstractCommand-exception-handler.xml +13 -0
  48. data/test/reports/TEST-HammerCLI-AbstractCommand-logging.xml +21 -0
  49. data/test/reports/TEST-HammerCLI-AbstractCommand-option-builder.xml +11 -0
  50. data/test/reports/TEST-HammerCLI-AbstractCommand-options.xml +11 -0
  51. data/test/reports/TEST-HammerCLI-AbstractCommand-output.xml +19 -0
  52. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-remove-subcommand.xml +11 -0
  53. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand-.xml +13 -0
  54. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand.xml +11 -0
  55. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior.xml +7 -0
  56. data/test/reports/TEST-HammerCLI-AbstractCommand.xml +11 -0
  57. data/test/reports/TEST-HammerCLI-Apipie-Command-options.xml +11 -0
  58. data/test/reports/TEST-HammerCLI-Apipie-Command-resource-defined.xml +9 -0
  59. data/test/reports/TEST-HammerCLI-Apipie-Command-setting-resources.xml +19 -0
  60. data/test/reports/TEST-HammerCLI-Apipie-Command.xml +9 -0
  61. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-aliasing-resources.xml +13 -0
  62. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-filtering-options.xml +15 -0
  63. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-required-options.xml +11 -0
  64. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-correct-normalizers.xml +9 -0
  65. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-hash-params.xml +11 -0
  66. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-one-simple-param.xml +15 -0
  67. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder.xml +7 -0
  68. data/test/reports/TEST-HammerCLI-Completer-command-completion.xml +29 -0
  69. data/test/reports/TEST-HammerCLI-Completer-option-value-completion.xml +17 -0
  70. data/test/reports/TEST-HammerCLI-Completer-subcommand-completion.xml +19 -0
  71. data/test/reports/TEST-HammerCLI-Completer.xml +7 -0
  72. data/test/reports/TEST-HammerCLI-CompleterLine-line-complete.xml +25 -0
  73. data/test/reports/TEST-HammerCLI-CompleterLine-splitting-words.xml +29 -0
  74. data/test/reports/TEST-HammerCLI-CompleterLine.xml +7 -0
  75. data/test/reports/TEST-HammerCLI-CompleterWord-complete-.xml +23 -0
  76. data/test/reports/TEST-HammerCLI-CompleterWord-quote.xml +15 -0
  77. data/test/reports/TEST-HammerCLI-CompleterWord-quoted-.xml +13 -0
  78. data/test/reports/TEST-HammerCLI-CompleterWord.xml +7 -0
  79. data/test/reports/TEST-HammerCLI-Connection.xml +21 -0
  80. data/test/reports/TEST-HammerCLI-ExceptionHandler.xml +21 -0
  81. data/test/reports/TEST-HammerCLI-I18n.xml +11 -0
  82. data/test/reports/TEST-HammerCLI-MainCommand-loading-context-password.xml +11 -0
  83. data/test/reports/TEST-HammerCLI-MainCommand-loading-context-username.xml +11 -0
  84. data/test/reports/TEST-HammerCLI-MainCommand-loading-context-verbose.xml +9 -0
  85. data/test/reports/TEST-HammerCLI-MainCommand-loading-context.xml +7 -0
  86. data/test/reports/TEST-HammerCLI-MainCommand.xml +7 -0
  87. data/test/reports/TEST-HammerCLI-Modules-find-by-name.xml +13 -0
  88. data/test/reports/TEST-HammerCLI-Modules-load-a-module-module-not-found.xml +13 -0
  89. data/test/reports/TEST-HammerCLI-Modules-load-a-module-module-runtime-exception.xml +13 -0
  90. data/test/reports/TEST-HammerCLI-Modules-load-a-module-success.xml +15 -0
  91. data/test/reports/TEST-HammerCLI-Modules-load-a-module.xml +7 -0
  92. data/test/reports/TEST-HammerCLI-Modules-load-all-modules.xml +9 -0
  93. data/test/reports/TEST-HammerCLI-Modules-names.xml +13 -0
  94. data/test/reports/TEST-HammerCLI-Modules.xml +7 -0
  95. data/test/reports/TEST-HammerCLI-OptionBuilderContainer.0.xml +7 -0
  96. data/test/reports/TEST-HammerCLI-OptionBuilderContainer.xml +11 -0
  97. data/test/reports/TEST-HammerCLI-Options-Normalizers-abstract.xml +9 -0
  98. data/test/reports/TEST-HammerCLI-Options-Normalizers-bool.xml +31 -0
  99. data/test/reports/TEST-HammerCLI-Options-Normalizers-datetime.xml +17 -0
  100. data/test/reports/TEST-HammerCLI-Options-Normalizers-enum.xml +15 -0
  101. data/test/reports/TEST-HammerCLI-Options-Normalizers-enumlist.xml +21 -0
  102. data/test/reports/TEST-HammerCLI-Options-Normalizers-json-input.xml +15 -0
  103. data/test/reports/TEST-HammerCLI-Options-Normalizers-key-value-list.xml +17 -0
  104. data/test/reports/TEST-HammerCLI-Options-Normalizers-list.xml +15 -0
  105. data/test/reports/TEST-HammerCLI-Options-Normalizers.xml +7 -0
  106. data/test/reports/TEST-HammerCLI-Options-OptionDefinition-context.xml +9 -0
  107. data/test/reports/TEST-HammerCLI-Options-OptionDefinition-formatters.xml +11 -0
  108. data/test/reports/TEST-HammerCLI-Options-OptionDefinition.xml +7 -0
  109. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-error-messages.xml +15 -0
  110. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-messages.xml +11 -0
  111. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-test-data-for-field.xml +15 -0
  112. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract.xml +17 -0
  113. data/test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection-show-ids.xml +9 -0
  114. data/test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection.xml +27 -0
  115. data/test/reports/TEST-HammerCLI-Output-Adapter-Base.xml +7 -0
  116. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-formatters.xml +11 -0
  117. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-collections.xml +13 -0
  118. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-containers.xml +11 -0
  119. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-ids.xml +11 -0
  120. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection.xml +11 -0
  121. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-message.xml +11 -0
  122. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues.xml +7 -0
  123. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-column-width.xml +15 -0
  124. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-formatters.xml +11 -0
  125. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-handle-ids.xml +11 -0
  126. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-sort-columns.xml +9 -0
  127. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection.xml +11 -0
  128. data/test/reports/TEST-HammerCLI-Output-Adapter-Table.xml +7 -0
  129. data/test/reports/TEST-HammerCLI-Output-Definition-empty-.xml +11 -0
  130. data/test/reports/TEST-HammerCLI-Output-Definition.xml +11 -0
  131. data/test/reports/TEST-HammerCLI-Output-Dsl-collection.xml +13 -0
  132. data/test/reports/TEST-HammerCLI-Output-Dsl-custom-fields.xml +11 -0
  133. data/test/reports/TEST-HammerCLI-Output-Dsl-fields.xml +15 -0
  134. data/test/reports/TEST-HammerCLI-Output-Dsl-label.xml +13 -0
  135. data/test/reports/TEST-HammerCLI-Output-Dsl-path-definition.xml +13 -0
  136. data/test/reports/TEST-HammerCLI-Output-Dsl.xml +9 -0
  137. data/test/reports/TEST-HammerCLI-Output-FieldFilter.xml +13 -0
  138. data/test/reports/TEST-HammerCLI-Output-Formatters-BooleanFormatter.xml +11 -0
  139. data/test/reports/TEST-HammerCLI-Output-Formatters-ColorFormatter.xml +9 -0
  140. data/test/reports/TEST-HammerCLI-Output-Formatters-DateFormatter.xml +11 -0
  141. data/test/reports/TEST-HammerCLI-Output-Formatters-FieldFormatter.xml +13 -0
  142. data/test/reports/TEST-HammerCLI-Output-Formatters-FormatterContainer.xml +13 -0
  143. data/test/reports/TEST-HammerCLI-Output-Formatters-FormatterLibrary.xml +11 -0
  144. data/test/reports/TEST-HammerCLI-Output-Formatters-KeyValueFormatter.xml +13 -0
  145. data/test/reports/TEST-HammerCLI-Output-Formatters-ListFormatter.xml +13 -0
  146. data/test/reports/TEST-HammerCLI-Output-Formatters-LongTextFormatter.xml +13 -0
  147. data/test/reports/TEST-HammerCLI-Output-Output-adapters.xml +17 -0
  148. data/test/reports/TEST-HammerCLI-Output-Output-data.xml +15 -0
  149. data/test/reports/TEST-HammerCLI-Output-Output-formatters.xml +9 -0
  150. data/test/reports/TEST-HammerCLI-Output-Output-messages.xml +19 -0
  151. data/test/reports/TEST-HammerCLI-Output-Output.xml +7 -0
  152. data/test/reports/TEST-HammerCLI-Output-RecordCollection.xml +13 -0
  153. data/test/reports/TEST-HammerCLI-Settings-load-from-paths.xml +15 -0
  154. data/test/reports/TEST-HammerCLI-Settings.xml +25 -0
  155. data/test/reports/TEST-HammerCLI-ShellHistory-loading-old-history.xml +11 -0
  156. data/test/reports/TEST-HammerCLI-ShellHistory-saving-history.xml +15 -0
  157. data/test/reports/TEST-HammerCLI-ShellHistory.xml +7 -0
  158. data/test/reports/TEST-MiniTest-Spec.xml +7 -0
  159. data/test/reports/TEST-String-camelize.xml +11 -0
  160. data/test/reports/TEST-String-formatting.xml +17 -0
  161. data/test/reports/TEST-String-indent.xml +11 -0
  162. data/test/reports/TEST-String-interactive-.xml +13 -0
  163. data/test/reports/TEST-String.xml +7 -0
  164. data/test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint-exist-.xml +13 -0
  165. data/test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint.xml +7 -0
  166. data/test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint-exist-.xml +13 -0
  167. data/test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint.xml +7 -0
  168. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-exist-.xml +9 -0
  169. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-rejected.xml +13 -0
  170. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-required.xml +13 -0
  171. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint.xml +7 -0
  172. data/test/reports/TEST-constraints.xml +7 -0
  173. data/test/unit/abstract_test.rb +15 -11
  174. data/test/unit/apipie/command_test.rb +29 -1
  175. data/test/unit/apipie/option_builder_test.rb +22 -0
  176. data/test/unit/fixtures/apipie/documented.json +44 -0
  177. data/test/unit/options/normalizers_test.rb +35 -0
  178. data/test/unit/output/adapter/csv_test.rb +104 -4
  179. data/test/unit/utils_test.rb +58 -0
  180. metadata +292 -6
@@ -0,0 +1,276 @@
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
+ # Claer <transiblu@claer.hammock.fr>, 2014
7
+ # Pierre-Emmanuel Dutang <dutangp@gmail.com>, 2014
8
+ msgid ""
9
+ msgstr ""
10
+ "Project-Id-Version: hammer-cli 0.1.2\n"
11
+ "Report-Msgid-Bugs-To: \n"
12
+ "POT-Creation-Date: 2014-08-01 12:42+0200\n"
13
+ "PO-Revision-Date: 2014-08-05 11:01+0000\n"
14
+ "Last-Translator: Claer <transiblu@claer.hammock.fr>\n"
15
+ "Language-Team: French (http://www.transifex.com/projects/p/foreman/language/fr/)\n"
16
+ "MIME-Version: 1.0\n"
17
+ "Content-Type: text/plain; charset=UTF-8\n"
18
+ "Content-Transfer-Encoding: 8bit\n"
19
+ "Language: fr\n"
20
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
21
+
22
+ #: lib/hammer_cli/clamp.rb:5
23
+ msgid "too many arguments"
24
+ msgstr "trop d'arguments"
25
+
26
+ #: lib/hammer_cli/clamp.rb:6
27
+ msgid "option '%<option>s' is required"
28
+ msgstr "l'option '%<option>s' est requise"
29
+
30
+ #: lib/hammer_cli/clamp.rb:7
31
+ msgid "option '%<option>s' (or env %<env>s) is required"
32
+ msgstr "L'option '%<option>s' (ou env %<env>s) est requise"
33
+
34
+ #: lib/hammer_cli/clamp.rb:8
35
+ msgid "option '%<switch>s': %<message>s"
36
+ msgstr "L'option '%<switch>s': %<message>s"
37
+
38
+ #: lib/hammer_cli/clamp.rb:9
39
+ msgid "parameter '%<param>s': %<message>s"
40
+ msgstr "Paramètre '%<param>s': %<message>s"
41
+
42
+ #: lib/hammer_cli/clamp.rb:10
43
+ msgid "%<env>s: %<message>s"
44
+ msgstr "%<env>s: %<message>s"
45
+
46
+ #: lib/hammer_cli/clamp.rb:11
47
+ msgid "Unrecognised option '%<switch>s'"
48
+ msgstr "Option inconnue '%<switch>s'"
49
+
50
+ #: lib/hammer_cli/clamp.rb:12
51
+ msgid "No such sub-command '%<name>s'"
52
+ msgstr "Sous commande inconnue '%<name>s'"
53
+
54
+ #: lib/hammer_cli/clamp.rb:13
55
+ msgid "no value provided"
56
+ msgstr "Aucune valeur fournit"
57
+
58
+ #: lib/hammer_cli/options/option_definition.rb:68
59
+ msgid "Can be specified multiple times. "
60
+ msgstr "Peut être spécifié plusieurs fois."
61
+
62
+ #: lib/hammer_cli/options/option_definition.rb:69
63
+ msgid "Default: "
64
+ msgstr "Défaut :"
65
+
66
+ #: lib/hammer_cli/options/option_definition.rb:69
67
+ msgid ", or "
68
+ msgstr ", ou"
69
+
70
+ #: lib/hammer_cli/options/normalizers.rb:26
71
+ msgid "Comma-separated list of key=value."
72
+ msgstr "Liste de clef=valeur séparées par des virgules."
73
+
74
+ #: lib/hammer_cli/options/normalizers.rb:35
75
+ msgid "value must be defined as a comma-separated list of key=value"
76
+ msgstr "la valeur doit être définie comme liste de clef=valeur séparées par des virgules"
77
+
78
+ #: lib/hammer_cli/options/normalizers.rb:46
79
+ msgid "Comma separated list of values."
80
+ msgstr "Liste de valeurs séparées par des virgules."
81
+
82
+ #: lib/hammer_cli/options/normalizers.rb:58
83
+ msgid "One of true/false, yes/no, 1/0."
84
+ msgstr "Au choix parmi true/false, yes/no, 1/0."
85
+
86
+ #: lib/hammer_cli/options/normalizers.rb:68
87
+ msgid "value must be one of true/false, yes/no, 1/0"
88
+ msgstr "La valeur doit être un de ces choix : true/false, yes/no, 1/0"
89
+
90
+ #: lib/hammer_cli/options/normalizers.rb:107
91
+ msgid "Unable to parse JSON input"
92
+ msgstr "Impossible d'analyser l'entrée JSON"
93
+
94
+ #: lib/hammer_cli/options/normalizers.rb:120
95
+ msgid "One of %s"
96
+ msgstr "Choisir parmi %s"
97
+
98
+ #: lib/hammer_cli/options/normalizers.rb:127
99
+ msgid "value must be one of '%s'"
100
+ msgstr "la valeur doit être choisie parmi '%s'"
101
+
102
+ #: lib/hammer_cli/options/normalizers.rb:146
103
+ msgid "Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format"
104
+ msgstr "Date et heure suivant YYYY-MM-DD HH:MM:SS ou format ISO 8601"
105
+
106
+ #: lib/hammer_cli/options/normalizers.rb:153
107
+ msgid "'%s' is not a valid date"
108
+ msgstr "'%s' n'est pas une date valide"
109
+
110
+ #: lib/hammer_cli/options/normalizers.rb:164
111
+ msgid "Any combination (comma separated list) of '%s'"
112
+ msgstr "Toute combinaison (liste séparée par des virgules) de '%s'"
113
+
114
+ #: lib/hammer_cli/options/normalizers.rb:184
115
+ msgid "value must be a combination of '%s'"
116
+ msgstr "la valeur doit être une combinaison de '%s'"
117
+
118
+ #: lib/hammer_cli/logger.rb:28
119
+ msgid "No permissions to create log dir %s"
120
+ msgstr "Permission refusée pour la création du répertoire de log %s "
121
+
122
+ #: lib/hammer_cli/logger.rb:43
123
+ msgid "File %s not writeable, won't log anything to the file!"
124
+ msgstr "Fichier %s non disponible en écriture, aucun log ne sera ajouté au fichier !"
125
+
126
+ #: lib/hammer_cli/main.rb:7
127
+ msgid "be verbose"
128
+ msgstr "être verbeux"
129
+
130
+ #: lib/hammer_cli/main.rb:8
131
+ msgid "show debugging output "
132
+ msgstr "voir la sortie debug"
133
+
134
+ #: lib/hammer_cli/main.rb:9
135
+ msgid "path to custom config file"
136
+ msgstr "chemin du fichier de configuration spécifique"
137
+
138
+ #: lib/hammer_cli/main.rb:11
139
+ msgid "username to access the remote system"
140
+ msgstr "nom d'utilisateur pour accéder au système distant"
141
+
142
+ #: lib/hammer_cli/main.rb:13
143
+ msgid "password to access the remote system"
144
+ msgstr "mot de passe pour accéder au système distant"
145
+
146
+ #: lib/hammer_cli/main.rb:15
147
+ msgid "remote system address"
148
+ msgstr "adresse du système distant"
149
+
150
+ #: lib/hammer_cli/main.rb:18
151
+ msgid "show version"
152
+ msgstr "Voir la version"
153
+
154
+ #: lib/hammer_cli/main.rb:27
155
+ msgid "Show ids of associated resources"
156
+ msgstr "Afficher les IDs liées aux ressources"
157
+
158
+ #: lib/hammer_cli/main.rb:29
159
+ msgid "Explicitly turn interactive mode on/off"
160
+ msgstr "Désactiver explicitement le mode interactif"
161
+
162
+ #: lib/hammer_cli/main.rb:33
163
+ msgid "Output as CSV (same as --output=csv)"
164
+ msgstr "Sortie de type CSV (idem --output=csv)"
165
+
166
+ #: lib/hammer_cli/main.rb:34
167
+ msgid "Set output format. One of [%s]"
168
+ msgstr "Définir le format de sortie. Parmi [%s]"
169
+
170
+ #: lib/hammer_cli/main.rb:37
171
+ msgid "Character to separate the values"
172
+ msgstr "Caractère de séparation des valeurs"
173
+
174
+ #: lib/hammer_cli/main.rb:41
175
+ msgid "Get list of possible endings"
176
+ msgstr "Lister les fins possibles"
177
+
178
+ #: lib/hammer_cli/settings.rb:28
179
+ msgid ""
180
+ "Warning: location hammer.modules.d is deprecated, move your module "
181
+ "configurations to cli.modules.d"
182
+ msgstr "Attention: l'emplacement hammer.modules.d est déprécié, déplacez vos configurations dans cli.modules.d"
183
+
184
+ #: lib/hammer_cli/modules.rb:10
185
+ msgid ""
186
+ "Legacy configuration of modules detected. Check section about configuration "
187
+ "in user manual"
188
+ msgstr "Ancienne configuration des modules détectée. Veuillez consulter la section configuration du manuel utilisateur"
189
+
190
+ #: lib/hammer_cli/modules.rb:42
191
+ msgid "Warning: An error occured while loading module %s"
192
+ msgstr "Attention: Une erreur est survenue lors du chargement du module %s"
193
+
194
+ #: lib/hammer_cli/exception_handler.rb:60
195
+ msgid "Error: %s"
196
+ msgstr "Erreur : %s"
197
+
198
+ #: lib/hammer_cli/exception_handler.rb:66
199
+ msgid "Error: %{message}\\n\\nSee: '%{path} --help'"
200
+ msgstr "Erreur : %{message}\\n\\nVoir : '%{path} --help'"
201
+
202
+ #: lib/hammer_cli/exception_handler.rb:83
203
+ msgid "Invalid username or password"
204
+ msgstr "Utilisateur ou mot de passe incorrect"
205
+
206
+ #: lib/hammer_cli/exception_handler.rb:90
207
+ msgid ""
208
+ "Could not load API description from the server\\n - is your server "
209
+ "down?\\n\\\\n \" - was \\\"#{rake_command}\\\" run on the server "
210
+ "when using apipie cache? (typical production settings))\\n\""
211
+ msgstr "Impossible de charger la description de l'API depuis le serveur\\n - serveur éteint ?\\n\\n \" - est ce que \\\"#{rake_command}\\\" est lancé sur le serveur en même temps que le cache apipie est actif ? (fonctionnement classique en production)\\n\""
212
+
213
+ #: lib/hammer_cli/validator.rb:41
214
+ msgid "Unknown option name '%s'"
215
+ msgstr "Option nommée '%s' inconnue"
216
+
217
+ #: lib/hammer_cli/validator.rb:62
218
+ msgid "You can't set all options %s at one time"
219
+ msgstr "Vous ne pouvez pas définir toutes les options %s en même temps"
220
+
221
+ #: lib/hammer_cli/validator.rb:63
222
+ msgid "Options %s are required"
223
+ msgstr "Options %s requises"
224
+
225
+ #: lib/hammer_cli/validator.rb:79
226
+ msgid "You can't set any of options %s"
227
+ msgstr "Vous ne pouvez définir les options de %s"
228
+
229
+ #: lib/hammer_cli/validator.rb:80
230
+ msgid "At least one of options %s is required"
231
+ msgstr "Au moins une options de %s est requise"
232
+
233
+ #: lib/hammer_cli/output/adapter/csv.rb:171
234
+ msgid "Message"
235
+ msgstr "Message"
236
+
237
+ #: lib/hammer_cli/output/adapter/csv.rb:175
238
+ msgid "Id"
239
+ msgstr "Id"
240
+
241
+ #: lib/hammer_cli/output/adapter/csv.rb:180
242
+ msgid "Name"
243
+ msgstr "Nom"
244
+
245
+ #: lib/hammer_cli/output/formatters.rb:154
246
+ msgid "no"
247
+ msgstr "non"
248
+
249
+ #: lib/hammer_cli/output/formatters.rb:154
250
+ msgid "yes"
251
+ msgstr "oui"
252
+
253
+ #: lib/hammer_cli/shell.rb:10
254
+ msgid "Print help for commands"
255
+ msgstr "Afficher l'aide des commandes"
256
+
257
+ #: lib/hammer_cli/shell.rb:22
258
+ msgid "Exit interactive shell"
259
+ msgstr "Quitter le shell interactif"
260
+
261
+ #: lib/hammer_cli/shell.rb:120
262
+ msgid "Welcome to the hammer interactive shell"
263
+ msgstr "Bienvenue sur le shell interactif d'Hammer"
264
+
265
+ #: lib/hammer_cli/shell.rb:121
266
+ msgid "Type 'help' for usage information"
267
+ msgstr "Saisir 'help' pour des informations d'utilisation "
268
+
269
+ #: lib/hammer_cli/shell.rb:122
270
+ msgid ""
271
+ "Command completion is disabled on ruby < 1.9 due to compatibility problems."
272
+ msgstr "La complétion automatique est désactivée pour ruby < 1.9 à cause de problèmes de compatibilité."
273
+
274
+ #: lib/hammer_cli/shell.rb:138
275
+ msgid "Interactive shell"
276
+ msgstr "Shell interactif"
@@ -6,9 +6,9 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer-cli 0.1.0\n"
9
+ "Project-Id-Version: hammer-cli 0.1.2\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-05-09 16:07-0400\n"
11
+ "POT-Creation-Date: 2014-08-13 16:09+0200\n"
12
12
  "PO-Revision-Date: 2014-03-04 16:38+0000\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -18,106 +18,40 @@ msgstr ""
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
20
20
 
21
- #: lib/hammer_cli/validator.rb:41
22
- msgid "Unknown option name '%s'"
23
- msgstr ""
24
-
25
- #: lib/hammer_cli/validator.rb:62
26
- msgid "You can't set all options %s at one time"
21
+ #: lib/hammer_cli/clamp.rb:5
22
+ msgid "too many arguments"
27
23
  msgstr ""
28
24
 
29
- #: lib/hammer_cli/validator.rb:63
30
- msgid "Options %s are required"
31
- msgstr ""
32
-
33
- #: lib/hammer_cli/validator.rb:79
34
- msgid "You can't set any of options %s"
25
+ #: lib/hammer_cli/clamp.rb:6
26
+ msgid "option '%<option>s' is required"
35
27
  msgstr ""
36
28
 
37
- #: lib/hammer_cli/validator.rb:80
38
- msgid "At least one of options %s is required"
29
+ #: lib/hammer_cli/clamp.rb:7
30
+ msgid "option '%<option>s' (or env %<env>s) is required"
39
31
  msgstr ""
40
32
 
41
- #: lib/hammer_cli/output/formatters.rb:154
42
- msgid "no"
33
+ #: lib/hammer_cli/clamp.rb:8
34
+ msgid "option '%<switch>s': %<message>s"
43
35
  msgstr ""
44
36
 
45
- #: lib/hammer_cli/output/formatters.rb:154
46
- msgid "yes"
37
+ #: lib/hammer_cli/clamp.rb:9
38
+ msgid "parameter '%<param>s': %<message>s"
47
39
  msgstr ""
48
40
 
49
- #: lib/hammer_cli/output/adapter/csv.rb:47
50
- msgid "Message"
41
+ #: lib/hammer_cli/clamp.rb:10
42
+ msgid "%<env>s: %<message>s"
51
43
  msgstr ""
52
44
 
53
- #: lib/hammer_cli/output/adapter/csv.rb:51
54
- msgid "Id"
45
+ #: lib/hammer_cli/clamp.rb:11
46
+ msgid "Unrecognised option '%<switch>s'"
55
47
  msgstr ""
56
48
 
57
- #: lib/hammer_cli/output/adapter/csv.rb:56
58
- msgid "Name"
49
+ #: lib/hammer_cli/clamp.rb:12
50
+ msgid "No such sub-command '%<name>s'"
59
51
  msgstr ""
60
52
 
61
- #: lib/hammer_cli/exception_handler.rb:60
62
- msgid "Error: %s"
63
- msgstr ""
64
-
65
- #: lib/hammer_cli/exception_handler.rb:66
66
- msgid "Error: %{message}\\n\\nSee: '%{path} --help'"
67
- msgstr ""
68
-
69
- #: lib/hammer_cli/exception_handler.rb:83
70
- msgid "Invalid username or password"
71
- msgstr ""
72
-
73
- #: lib/hammer_cli/exception_handler.rb:90
74
- msgid ""
75
- "Could not load API description from the server\\n - is your server down?\\n"
76
- "\\\\n \" - was \\\"#{rake_command}\\\" run on the server when "
77
- "using apipie cache? (typical production settings))\\n\""
78
- msgstr ""
79
-
80
- #: lib/hammer_cli/logger.rb:28
81
- msgid "No permissions to create log dir %s"
82
- msgstr ""
83
-
84
- #: lib/hammer_cli/logger.rb:43
85
- msgid "File %s not writeable, won't log anything to the file!"
86
- msgstr ""
87
-
88
- #: lib/hammer_cli/modules.rb:10
89
- msgid ""
90
- "Legacy configuration of modules detected. Check section about configuration "
91
- "in user manual"
92
- msgstr ""
93
-
94
- #: lib/hammer_cli/modules.rb:42
95
- msgid "Warning: An error occured while loading module %s"
96
- msgstr ""
97
-
98
- #: lib/hammer_cli/shell.rb:10
99
- msgid "Print help for commands"
100
- msgstr ""
101
-
102
- #: lib/hammer_cli/shell.rb:22
103
- msgid "Exit interactive shell"
104
- msgstr ""
105
-
106
- #: lib/hammer_cli/shell.rb:120
107
- msgid "Welcome to the hammer interactive shell"
108
- msgstr ""
109
-
110
- #: lib/hammer_cli/shell.rb:121
111
- msgid "Type 'help' for usage information"
112
- msgstr ""
113
-
114
- #: lib/hammer_cli/shell.rb:122
115
- msgid ""
116
- "Command completion is disabled on ruby < 1.9 due to compatibility problems."
117
- msgstr ""
118
-
119
- #: lib/hammer_cli/shell.rb:138
120
- msgid "Interactive shell"
53
+ #: lib/hammer_cli/clamp.rb:13
54
+ msgid "no value provided"
121
55
  msgstr ""
122
56
 
123
57
  #: lib/hammer_cli/options/option_definition.rb:68
@@ -172,6 +106,22 @@ msgstr ""
172
106
  msgid "'%s' is not a valid date"
173
107
  msgstr ""
174
108
 
109
+ #: lib/hammer_cli/options/normalizers.rb:164
110
+ msgid "Any combination (comma separated list) of '%s'"
111
+ msgstr ""
112
+
113
+ #: lib/hammer_cli/options/normalizers.rb:184
114
+ msgid "value must be a combination of '%s'"
115
+ msgstr ""
116
+
117
+ #: lib/hammer_cli/logger.rb:28
118
+ msgid "No permissions to create log dir %s"
119
+ msgstr ""
120
+
121
+ #: lib/hammer_cli/logger.rb:43
122
+ msgid "File %s not writeable, won't log anything to the file!"
123
+ msgstr ""
124
+
175
125
  #: lib/hammer_cli/main.rb:7
176
126
  msgid "be verbose"
177
127
  msgstr ""
@@ -192,31 +142,35 @@ msgstr ""
192
142
  msgid "password to access the remote system"
193
143
  msgstr ""
194
144
 
195
- #: lib/hammer_cli/main.rb:16
145
+ #: lib/hammer_cli/main.rb:15
146
+ msgid "remote system address"
147
+ msgstr ""
148
+
149
+ #: lib/hammer_cli/main.rb:18
196
150
  msgid "show version"
197
151
  msgstr ""
198
152
 
199
- #: lib/hammer_cli/main.rb:25
153
+ #: lib/hammer_cli/main.rb:27
200
154
  msgid "Show ids of associated resources"
201
155
  msgstr ""
202
156
 
203
- #: lib/hammer_cli/main.rb:27
157
+ #: lib/hammer_cli/main.rb:29
204
158
  msgid "Explicitly turn interactive mode on/off"
205
159
  msgstr ""
206
160
 
207
- #: lib/hammer_cli/main.rb:31
161
+ #: lib/hammer_cli/main.rb:33
208
162
  msgid "Output as CSV (same as --output=csv)"
209
163
  msgstr ""
210
164
 
211
- #: lib/hammer_cli/main.rb:32
165
+ #: lib/hammer_cli/main.rb:34
212
166
  msgid "Set output format. One of [%s]"
213
167
  msgstr ""
214
168
 
215
- #: lib/hammer_cli/main.rb:35
169
+ #: lib/hammer_cli/main.rb:37
216
170
  msgid "Character to separate the values"
217
171
  msgstr ""
218
172
 
219
- #: lib/hammer_cli/main.rb:39
173
+ #: lib/hammer_cli/main.rb:41
220
174
  msgid "Get list of possible endings"
221
175
  msgstr ""
222
176
 
@@ -225,3 +179,114 @@ msgid ""
225
179
  "Warning: location hammer.modules.d is deprecated, move your module "
226
180
  "configurations to cli.modules.d"
227
181
  msgstr ""
182
+
183
+ #: lib/hammer_cli/modules.rb:10
184
+ msgid ""
185
+ "Legacy configuration of modules detected. Check section about configuration "
186
+ "in user manual"
187
+ msgstr ""
188
+
189
+ #: lib/hammer_cli/modules.rb:42
190
+ msgid "Warning: An error occured while loading module %s"
191
+ msgstr ""
192
+
193
+ #: lib/hammer_cli/exception_handler.rb:60
194
+ msgid "Error: %s"
195
+ msgstr ""
196
+
197
+ #: lib/hammer_cli/exception_handler.rb:66
198
+ msgid "Error: %{message}"
199
+ msgstr ""
200
+
201
+ #: lib/hammer_cli/exception_handler.rb:67
202
+ msgid "See: '%{path} --help'"
203
+ msgstr ""
204
+
205
+ #: lib/hammer_cli/exception_handler.rb:84
206
+ msgid "Invalid username or password"
207
+ msgstr ""
208
+
209
+ #: lib/hammer_cli/exception_handler.rb:91
210
+ msgid "Could not load the API description from the server"
211
+ msgstr ""
212
+
213
+ #: lib/hammer_cli/exception_handler.rb:92
214
+ msgid "is the server down?"
215
+ msgstr ""
216
+
217
+ #: lib/hammer_cli/exception_handler.rb:93
218
+ msgid ""
219
+ "was '%s' run on the server when using apipie cache? (typical production "
220
+ "settings)"
221
+ msgstr ""
222
+
223
+ #: lib/hammer_cli/validator.rb:41
224
+ msgid "Unknown option name '%s'"
225
+ msgstr ""
226
+
227
+ #: lib/hammer_cli/validator.rb:62
228
+ msgid "You can't set all options %s at one time"
229
+ msgstr ""
230
+
231
+ #: lib/hammer_cli/validator.rb:63
232
+ msgid "Options %s are required"
233
+ msgstr ""
234
+
235
+ #: lib/hammer_cli/validator.rb:79
236
+ msgid "You can't set any of options %s"
237
+ msgstr ""
238
+
239
+ #: lib/hammer_cli/validator.rb:80
240
+ msgid "At least one of options %s is required"
241
+ msgstr ""
242
+
243
+ #: lib/hammer_cli/output/adapter/csv.rb:171
244
+ msgid "Message"
245
+ msgstr ""
246
+
247
+ #: lib/hammer_cli/output/adapter/csv.rb:175
248
+ msgid "Id"
249
+ msgstr ""
250
+
251
+ #: lib/hammer_cli/output/adapter/csv.rb:180
252
+ msgid "Name"
253
+ msgstr ""
254
+
255
+ #: lib/hammer_cli/output/formatters.rb:154
256
+ msgid "no"
257
+ msgstr ""
258
+
259
+ #: lib/hammer_cli/output/formatters.rb:154
260
+ msgid "yes"
261
+ msgstr ""
262
+
263
+ #: lib/hammer_cli/shell.rb:10
264
+ msgid "Print help for commands"
265
+ msgstr ""
266
+
267
+ #: lib/hammer_cli/shell.rb:22
268
+ msgid "Exit interactive shell"
269
+ msgstr ""
270
+
271
+ #: lib/hammer_cli/shell.rb:120
272
+ msgid "Welcome to the hammer interactive shell"
273
+ msgstr ""
274
+
275
+ #: lib/hammer_cli/shell.rb:121
276
+ msgid "Type 'help' for usage information"
277
+ msgstr ""
278
+
279
+ #: lib/hammer_cli/shell.rb:122
280
+ msgid ""
281
+ "Command completion is disabled on ruby < 1.9 due to compatibility problems."
282
+ msgstr ""
283
+
284
+ #: lib/hammer_cli/shell.rb:138
285
+ msgid "Interactive shell"
286
+ msgstr ""
287
+
288
+ #: lib/hammer_cli/subcommand.rb:56
289
+ msgid ""
290
+ "can't replace subcommand %<name>s (%<existing_class>s) with %<name>s "
291
+ "(%<new_class>s)"
292
+ msgstr ""
@@ -0,0 +1,7 @@
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>
@@ -0,0 +1,15 @@
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>
@@ -0,0 +1,15 @@
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>
@@ -0,0 +1,7 @@
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>
@@ -0,0 +1,7 @@
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>
@@ -0,0 +1,11 @@
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>
@@ -0,0 +1,11 @@
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>