hammer_cli 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/bin/hammer +3 -1
  3. data/config/cli_config.template.yml +3 -0
  4. data/doc/creating_commands.md +1 -1
  5. data/doc/installation.md +3 -2
  6. data/doc/release_notes.md +17 -0
  7. data/doc/writing_a_plugin.md +1 -1
  8. data/lib/hammer_cli/abstract.rb +46 -9
  9. data/lib/hammer_cli/apipie/command.rb +10 -1
  10. data/lib/hammer_cli/apipie/option_builder.rb +29 -11
  11. data/lib/hammer_cli/apipie/option_definition.rb +18 -0
  12. data/lib/hammer_cli/apipie/resource.rb +4 -22
  13. data/lib/hammer_cli/exception_handler.rb +18 -6
  14. data/lib/hammer_cli/exceptions.rb +1 -0
  15. data/lib/hammer_cli/i18n.rb +4 -0
  16. data/lib/hammer_cli/main.rb +2 -0
  17. data/lib/hammer_cli/modules.rb +30 -2
  18. data/lib/hammer_cli/options/matcher.rb +48 -0
  19. data/lib/hammer_cli/output/adapter.rb +3 -1
  20. data/lib/hammer_cli/output/adapter/csv.rb +5 -2
  21. data/lib/hammer_cli/output/adapter/json.rb +17 -0
  22. data/lib/hammer_cli/output/adapter/table.rb +11 -17
  23. data/lib/hammer_cli/output/adapter/tree_structure.rb +74 -0
  24. data/lib/hammer_cli/output/adapter/wrapper_formatter.rb +20 -0
  25. data/lib/hammer_cli/output/adapter/yaml.rb +16 -0
  26. data/lib/hammer_cli/shell.rb +3 -8
  27. data/lib/hammer_cli/utils.rb +10 -0
  28. data/lib/hammer_cli/version.rb +1 -1
  29. data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
  30. data/locale/de/hammer-cli.po +296 -0
  31. data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
  32. data/locale/en/hammer-cli.po +1 -1
  33. data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
  34. data/locale/en_GB/hammer-cli.po +133 -133
  35. data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
  36. data/locale/es/hammer-cli.po +148 -147
  37. data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
  38. data/locale/fr/hammer-cli.po +142 -141
  39. data/locale/hammer-cli.pot +39 -32
  40. data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
  41. data/locale/it/hammer-cli.po +293 -0
  42. data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
  43. data/locale/ja/hammer-cli.po +291 -0
  44. data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
  45. data/locale/ko/hammer-cli.po +292 -0
  46. data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
  47. data/locale/pt_BR/hammer-cli.po +294 -0
  48. data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
  49. data/locale/ru/hammer-cli.po +293 -0
  50. data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
  51. data/locale/zh_CN/hammer-cli.po +292 -0
  52. data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
  53. data/locale/zh_TW/hammer-cli.po +292 -0
  54. data/test/unit/apipie/command_test.rb +22 -0
  55. data/test/unit/apipie/option_builder_test.rb +21 -7
  56. data/test/unit/apipie/option_definition_test.rb +26 -0
  57. data/test/unit/fixtures/apipie/documented.json +26 -0
  58. data/test/unit/modules_test.rb +13 -2
  59. data/test/unit/options/matcher_test.rb +61 -0
  60. data/test/unit/output/adapter/json_test.rb +214 -0
  61. data/test/unit/output/adapter/table_test.rb +66 -0
  62. data/test/unit/output/adapter/yaml_test.rb +213 -0
  63. data/test/unit/utils_test.rb +17 -0
  64. metadata +249 -205
@@ -6,7 +6,7 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer-cli 0.1.3\n"
9
+ "Project-Id-Version: hammer-cli 0.1.4\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2014-05-09 16:07-0400\n"
12
12
  "PO-Revision-Date: 2014-03-04 16:38+0000\n"
@@ -5,9 +5,9 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer-cli 0.1.3\n"
8
+ "Project-Id-Version: hammer-cli 0.1.4\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-08-13 16:09+0200\n"
10
+ "POT-Creation-Date: 2014-09-15 12:50+0100\n"
11
11
  "PO-Revision-Date: 2014-08-14 09:42+0000\n"
12
12
  "Last-Translator: Lukáš Zapletal\n"
13
13
  "Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/foreman/language/en_GB/)\n"
@@ -17,6 +17,117 @@ msgstr ""
17
17
  "Language: en_GB\n"
18
18
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
19
 
20
+ #: lib/hammer_cli/subcommand.rb:56
21
+ msgid ""
22
+ "can't replace subcommand %<name>s (%<existing_class>s) with %<name>s "
23
+ "(%<new_class>s)"
24
+ msgstr ""
25
+
26
+ #: lib/hammer_cli/logger.rb:28
27
+ msgid "No permissions to create log dir %s"
28
+ msgstr ""
29
+
30
+ #: lib/hammer_cli/logger.rb:43
31
+ msgid "File %s not writeable, won't log anything to the file!"
32
+ msgstr ""
33
+
34
+ #: lib/hammer_cli/main.rb:7
35
+ msgid "be verbose"
36
+ msgstr ""
37
+
38
+ #: lib/hammer_cli/main.rb:8
39
+ msgid "show debugging output "
40
+ msgstr ""
41
+
42
+ #: lib/hammer_cli/main.rb:9
43
+ msgid "path to custom config file"
44
+ msgstr ""
45
+
46
+ #: lib/hammer_cli/main.rb:11
47
+ msgid "username to access the remote system"
48
+ msgstr ""
49
+
50
+ #: lib/hammer_cli/main.rb:13
51
+ msgid "password to access the remote system"
52
+ msgstr ""
53
+
54
+ #: lib/hammer_cli/main.rb:15
55
+ msgid "remote system address"
56
+ msgstr ""
57
+
58
+ #: lib/hammer_cli/main.rb:18
59
+ msgid "show version"
60
+ msgstr ""
61
+
62
+ #: lib/hammer_cli/main.rb:27
63
+ msgid "Show ids of associated resources"
64
+ msgstr ""
65
+
66
+ #: lib/hammer_cli/main.rb:29
67
+ msgid "Explicitly turn interactive mode on/off"
68
+ msgstr ""
69
+
70
+ #: lib/hammer_cli/main.rb:33
71
+ msgid "Output as CSV (same as --output=csv)"
72
+ msgstr ""
73
+
74
+ #: lib/hammer_cli/main.rb:34
75
+ msgid "Set output format. One of [%s]"
76
+ msgstr ""
77
+
78
+ #: lib/hammer_cli/main.rb:37
79
+ msgid "Character to separate the values"
80
+ msgstr ""
81
+
82
+ #: lib/hammer_cli/main.rb:41
83
+ msgid "Get list of possible endings"
84
+ msgstr ""
85
+
86
+ #: lib/hammer_cli/validator.rb:41
87
+ msgid "Unknown option name '%s'"
88
+ msgstr ""
89
+
90
+ #: lib/hammer_cli/validator.rb:62
91
+ msgid "You can't set all options %s at one time"
92
+ msgstr ""
93
+
94
+ #: lib/hammer_cli/validator.rb:63
95
+ msgid "Options %s are required"
96
+ msgstr ""
97
+
98
+ #: lib/hammer_cli/validator.rb:79
99
+ msgid "You can't set any of options %s"
100
+ msgstr ""
101
+
102
+ #: lib/hammer_cli/validator.rb:80
103
+ msgid "At least one of options %s is required"
104
+ msgstr ""
105
+
106
+ #: lib/hammer_cli/shell.rb:10
107
+ msgid "Print help for commands"
108
+ msgstr ""
109
+
110
+ #: lib/hammer_cli/shell.rb:22
111
+ msgid "Exit interactive shell"
112
+ msgstr ""
113
+
114
+ #: lib/hammer_cli/shell.rb:120
115
+ msgid "Welcome to the hammer interactive shell"
116
+ msgstr ""
117
+
118
+ #: lib/hammer_cli/shell.rb:121
119
+ msgid "Type 'help' for usage information"
120
+ msgstr ""
121
+
122
+ #: lib/hammer_cli/shell.rb:122
123
+ msgid ""
124
+ "Command completion is disabled on ruby < 1.9 due to compatibility problems."
125
+ msgstr ""
126
+
127
+ #: lib/hammer_cli/shell.rb:138
128
+ msgid "Interactive shell"
129
+ msgstr ""
130
+
20
131
  #: lib/hammer_cli/clamp.rb:5
21
132
  msgid "too many arguments"
22
133
  msgstr ""
@@ -69,126 +180,56 @@ msgstr ""
69
180
  msgid "Comma-separated list of key=value."
70
181
  msgstr ""
71
182
 
72
- #: lib/hammer_cli/options/normalizers.rb:35
183
+ #: lib/hammer_cli/options/normalizers.rb:39
73
184
  msgid "value must be defined as a comma-separated list of key=value"
74
185
  msgstr ""
75
186
 
76
- #: lib/hammer_cli/options/normalizers.rb:46
187
+ #: lib/hammer_cli/options/normalizers.rb:57
77
188
  msgid "Comma separated list of values."
78
189
  msgstr ""
79
190
 
80
- #: lib/hammer_cli/options/normalizers.rb:58
191
+ #: lib/hammer_cli/options/normalizers.rb:69
81
192
  msgid "One of true/false, yes/no, 1/0."
82
193
  msgstr ""
83
194
 
84
- #: lib/hammer_cli/options/normalizers.rb:68
195
+ #: lib/hammer_cli/options/normalizers.rb:79
85
196
  msgid "value must be one of true/false, yes/no, 1/0"
86
197
  msgstr ""
87
198
 
88
- #: lib/hammer_cli/options/normalizers.rb:107
199
+ #: lib/hammer_cli/options/normalizers.rb:118
89
200
  msgid "Unable to parse JSON input"
90
201
  msgstr ""
91
202
 
92
- #: lib/hammer_cli/options/normalizers.rb:120
203
+ #: lib/hammer_cli/options/normalizers.rb:131
93
204
  msgid "One of %s"
94
205
  msgstr ""
95
206
 
96
- #: lib/hammer_cli/options/normalizers.rb:127
207
+ #: lib/hammer_cli/options/normalizers.rb:138
97
208
  msgid "value must be one of '%s'"
98
209
  msgstr ""
99
210
 
100
- #: lib/hammer_cli/options/normalizers.rb:146
211
+ #: lib/hammer_cli/options/normalizers.rb:157
101
212
  msgid "Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format"
102
213
  msgstr ""
103
214
 
104
- #: lib/hammer_cli/options/normalizers.rb:153
215
+ #: lib/hammer_cli/options/normalizers.rb:164
105
216
  msgid "'%s' is not a valid date"
106
217
  msgstr ""
107
218
 
108
- #: lib/hammer_cli/options/normalizers.rb:164
219
+ #: lib/hammer_cli/options/normalizers.rb:175
109
220
  msgid "Any combination (comma separated list) of '%s'"
110
221
  msgstr ""
111
222
 
112
- #: lib/hammer_cli/options/normalizers.rb:184
223
+ #: lib/hammer_cli/options/normalizers.rb:195
113
224
  msgid "value must be a combination of '%s'"
114
225
  msgstr ""
115
226
 
116
- #: lib/hammer_cli/logger.rb:28
117
- msgid "No permissions to create log dir %s"
118
- msgstr ""
119
-
120
- #: lib/hammer_cli/logger.rb:43
121
- msgid "File %s not writeable, won't log anything to the file!"
122
- msgstr ""
123
-
124
- #: lib/hammer_cli/main.rb:7
125
- msgid "be verbose"
126
- msgstr ""
127
-
128
- #: lib/hammer_cli/main.rb:8
129
- msgid "show debugging output "
130
- msgstr ""
131
-
132
- #: lib/hammer_cli/main.rb:9
133
- msgid "path to custom config file"
134
- msgstr ""
135
-
136
- #: lib/hammer_cli/main.rb:11
137
- msgid "username to access the remote system"
138
- msgstr ""
139
-
140
- #: lib/hammer_cli/main.rb:13
141
- msgid "password to access the remote system"
142
- msgstr ""
143
-
144
- #: lib/hammer_cli/main.rb:15
145
- msgid "remote system address"
146
- msgstr ""
147
-
148
- #: lib/hammer_cli/main.rb:18
149
- msgid "show version"
150
- msgstr ""
151
-
152
- #: lib/hammer_cli/main.rb:27
153
- msgid "Show ids of associated resources"
154
- msgstr ""
155
-
156
- #: lib/hammer_cli/main.rb:29
157
- msgid "Explicitly turn interactive mode on/off"
158
- msgstr ""
159
-
160
- #: lib/hammer_cli/main.rb:33
161
- msgid "Output as CSV (same as --output=csv)"
162
- msgstr ""
163
-
164
- #: lib/hammer_cli/main.rb:34
165
- msgid "Set output format. One of [%s]"
166
- msgstr ""
167
-
168
- #: lib/hammer_cli/main.rb:37
169
- msgid "Character to separate the values"
170
- msgstr ""
171
-
172
- #: lib/hammer_cli/main.rb:41
173
- msgid "Get list of possible endings"
174
- msgstr ""
175
-
176
227
  #: lib/hammer_cli/settings.rb:28
177
228
  msgid ""
178
229
  "Warning: location hammer.modules.d is deprecated, move your module "
179
230
  "configurations to cli.modules.d"
180
231
  msgstr ""
181
232
 
182
- #: lib/hammer_cli/modules.rb:10
183
- msgid ""
184
- "Legacy configuration of modules detected. Check section about configuration "
185
- "in user manual"
186
- msgstr ""
187
-
188
- #: lib/hammer_cli/modules.rb:42
189
- msgid "Warning: An error occured while loading module %s"
190
- msgstr ""
191
-
192
233
  #: lib/hammer_cli/exception_handler.rb:60
193
234
  msgid "Error: %s"
194
235
  msgstr ""
@@ -219,24 +260,12 @@ msgid ""
219
260
  "settings)"
220
261
  msgstr ""
221
262
 
222
- #: lib/hammer_cli/validator.rb:41
223
- msgid "Unknown option name '%s'"
224
- msgstr ""
225
-
226
- #: lib/hammer_cli/validator.rb:62
227
- msgid "You can't set all options %s at one time"
228
- msgstr ""
229
-
230
- #: lib/hammer_cli/validator.rb:63
231
- msgid "Options %s are required"
232
- msgstr ""
233
-
234
- #: lib/hammer_cli/validator.rb:79
235
- msgid "You can't set any of options %s"
263
+ #: lib/hammer_cli/output/formatters.rb:154
264
+ msgid "no"
236
265
  msgstr ""
237
266
 
238
- #: lib/hammer_cli/validator.rb:80
239
- msgid "At least one of options %s is required"
267
+ #: lib/hammer_cli/output/formatters.rb:154
268
+ msgid "yes"
240
269
  msgstr ""
241
270
 
242
271
  #: lib/hammer_cli/output/adapter/csv.rb:171
@@ -251,41 +280,12 @@ msgstr ""
251
280
  msgid "Name"
252
281
  msgstr "Name"
253
282
 
254
- #: lib/hammer_cli/output/formatters.rb:154
255
- msgid "no"
256
- msgstr ""
257
-
258
- #: lib/hammer_cli/output/formatters.rb:154
259
- msgid "yes"
260
- msgstr ""
261
-
262
- #: lib/hammer_cli/shell.rb:10
263
- msgid "Print help for commands"
264
- msgstr ""
265
-
266
- #: lib/hammer_cli/shell.rb:22
267
- msgid "Exit interactive shell"
268
- msgstr ""
269
-
270
- #: lib/hammer_cli/shell.rb:120
271
- msgid "Welcome to the hammer interactive shell"
272
- msgstr ""
273
-
274
- #: lib/hammer_cli/shell.rb:121
275
- msgid "Type 'help' for usage information"
276
- msgstr ""
277
-
278
- #: lib/hammer_cli/shell.rb:122
283
+ #: lib/hammer_cli/modules.rb:10
279
284
  msgid ""
280
- "Command completion is disabled on ruby < 1.9 due to compatibility problems."
281
- msgstr ""
282
-
283
- #: lib/hammer_cli/shell.rb:138
284
- msgid "Interactive shell"
285
+ "Legacy configuration of modules detected. Check section about configuration "
286
+ "in user manual"
285
287
  msgstr ""
286
288
 
287
- #: lib/hammer_cli/subcommand.rb:56
288
- msgid ""
289
- "can't replace subcommand %<name>s (%<existing_class>s) with %<name>s "
290
- "(%<new_class>s)"
289
+ #: lib/hammer_cli/modules.rb:42
290
+ msgid "Warning: An error occured while loading module %s"
291
291
  msgstr ""
@@ -3,14 +3,15 @@
3
3
  # This file is distributed under the same license as the hammer-cli package.
4
4
  #
5
5
  # Translators:
6
- # Sergio Ocón <sergio@redhat.com>, 2014
6
+ # Dominic Cleal <dcleal@redhat.com>, 2014
7
+ # Sergio Ocón <sergio.ocon@redhat.com>, 2014
7
8
  msgid ""
8
9
  msgstr ""
9
- "Project-Id-Version: hammer-cli 0.1.3\n"
10
+ "Project-Id-Version: hammer-cli 0.1.4\n"
10
11
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-08-13 16:09+0200\n"
12
- "PO-Revision-Date: 2014-08-14 09:42+0000\n"
13
- "Last-Translator: Lukáš Zapletal\n"
12
+ "POT-Creation-Date: 2014-09-15 12:50+0100\n"
13
+ "PO-Revision-Date: 2014-09-16 09:51+0000\n"
14
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
14
15
  "Language-Team: Spanish (http://www.transifex.com/projects/p/foreman/language/es/)\n"
15
16
  "MIME-Version: 1.0\n"
16
17
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -18,6 +19,117 @@ msgstr ""
18
19
  "Language: es\n"
19
20
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
21
 
22
+ #: lib/hammer_cli/subcommand.rb:56
23
+ msgid ""
24
+ "can't replace subcommand %<name>s (%<existing_class>s) with %<name>s "
25
+ "(%<new_class>s)"
26
+ msgstr "no es posible reemplazar el subcomando %<name>s (%<existing_class>s) con %<name>s (%<new_class>s)"
27
+
28
+ #: lib/hammer_cli/logger.rb:28
29
+ msgid "No permissions to create log dir %s"
30
+ msgstr "No tiene permiso para crear el directorio de log %s"
31
+
32
+ #: lib/hammer_cli/logger.rb:43
33
+ msgid "File %s not writeable, won't log anything to the file!"
34
+ msgstr "El archivo %s no tiene acceso de escritura, no se guardará ningún log en él!"
35
+
36
+ #: lib/hammer_cli/main.rb:7
37
+ msgid "be verbose"
38
+ msgstr "dé más detalles"
39
+
40
+ #: lib/hammer_cli/main.rb:8
41
+ msgid "show debugging output "
42
+ msgstr "muestra salida de depuración"
43
+
44
+ #: lib/hammer_cli/main.rb:9
45
+ msgid "path to custom config file"
46
+ msgstr "ruta al fichero de configuración personalizado"
47
+
48
+ #: lib/hammer_cli/main.rb:11
49
+ msgid "username to access the remote system"
50
+ msgstr "nombre de usuario de acceso al sistema remoto"
51
+
52
+ #: lib/hammer_cli/main.rb:13
53
+ msgid "password to access the remote system"
54
+ msgstr "palabra clave de acceso al sistema remoto"
55
+
56
+ #: lib/hammer_cli/main.rb:15
57
+ msgid "remote system address"
58
+ msgstr "dirección del sistema remoto"
59
+
60
+ #: lib/hammer_cli/main.rb:18
61
+ msgid "show version"
62
+ msgstr "mostrar versión"
63
+
64
+ #: lib/hammer_cli/main.rb:27
65
+ msgid "Show ids of associated resources"
66
+ msgstr "Mostrar id de recursos asociados"
67
+
68
+ #: lib/hammer_cli/main.rb:29
69
+ msgid "Explicitly turn interactive mode on/off"
70
+ msgstr "Active/desactive el modo interactivo explícitamente"
71
+
72
+ #: lib/hammer_cli/main.rb:33
73
+ msgid "Output as CSV (same as --output=csv)"
74
+ msgstr "Exporte como CSV (equivale a --output=csv)"
75
+
76
+ #: lib/hammer_cli/main.rb:34
77
+ msgid "Set output format. One of [%s]"
78
+ msgstr "Establece el formato de salida. Uno de [%s]"
79
+
80
+ #: lib/hammer_cli/main.rb:37
81
+ msgid "Character to separate the values"
82
+ msgstr "Caracter de separación de valores"
83
+
84
+ #: lib/hammer_cli/main.rb:41
85
+ msgid "Get list of possible endings"
86
+ msgstr "Obtenga lista de finales posibles"
87
+
88
+ #: lib/hammer_cli/validator.rb:41
89
+ msgid "Unknown option name '%s'"
90
+ msgstr "Nombre de opción desconocida '%s'"
91
+
92
+ #: lib/hammer_cli/validator.rb:62
93
+ msgid "You can't set all options %s at one time"
94
+ msgstr "No se puede establecer todas las opciones %s al mismo tiempo"
95
+
96
+ #: lib/hammer_cli/validator.rb:63
97
+ msgid "Options %s are required"
98
+ msgstr "Se necesita las opciones %s"
99
+
100
+ #: lib/hammer_cli/validator.rb:79
101
+ msgid "You can't set any of options %s"
102
+ msgstr "No se puede establecer ninguna de las opciones %s"
103
+
104
+ #: lib/hammer_cli/validator.rb:80
105
+ msgid "At least one of options %s is required"
106
+ msgstr "Se necesita al menos una de las opciones %s"
107
+
108
+ #: lib/hammer_cli/shell.rb:10
109
+ msgid "Print help for commands"
110
+ msgstr "Imprime ayuda de comandos"
111
+
112
+ #: lib/hammer_cli/shell.rb:22
113
+ msgid "Exit interactive shell"
114
+ msgstr "Salir del shell interactivo"
115
+
116
+ #: lib/hammer_cli/shell.rb:120
117
+ msgid "Welcome to the hammer interactive shell"
118
+ msgstr "Bienvenido al shell interactivo de hammer"
119
+
120
+ #: lib/hammer_cli/shell.rb:121
121
+ msgid "Type 'help' for usage information"
122
+ msgstr "Escriba 'help' para obtener información de uso"
123
+
124
+ #: lib/hammer_cli/shell.rb:122
125
+ msgid ""
126
+ "Command completion is disabled on ruby < 1.9 due to compatibility problems."
127
+ msgstr "El completado de comandos está deshabilitado para ruby <1.9 debido a problemas de compatibilidad."
128
+
129
+ #: lib/hammer_cli/shell.rb:138
130
+ msgid "Interactive shell"
131
+ msgstr "Shell interactivo"
132
+
21
133
  #: lib/hammer_cli/clamp.rb:5
22
134
  msgid "too many arguments"
23
135
  msgstr "demasiados argumentos"
@@ -60,147 +172,77 @@ msgstr "Puede especificarse repetidamente."
60
172
 
61
173
  #: lib/hammer_cli/options/option_definition.rb:69
62
174
  msgid "Default: "
63
- msgstr "Por defecto:"
175
+ msgstr "Por defecto: "
64
176
 
65
177
  #: lib/hammer_cli/options/option_definition.rb:69
66
178
  msgid ", or "
67
- msgstr ", o"
179
+ msgstr ", o "
68
180
 
69
181
  #: lib/hammer_cli/options/normalizers.rb:26
70
182
  msgid "Comma-separated list of key=value."
71
183
  msgstr "Lista de pares llave=valor separados por comas."
72
184
 
73
- #: lib/hammer_cli/options/normalizers.rb:35
185
+ #: lib/hammer_cli/options/normalizers.rb:39
74
186
  msgid "value must be defined as a comma-separated list of key=value"
75
187
  msgstr "el valor debe definirse como una lista de pares llave=valor separados por comas"
76
188
 
77
- #: lib/hammer_cli/options/normalizers.rb:46
189
+ #: lib/hammer_cli/options/normalizers.rb:57
78
190
  msgid "Comma separated list of values."
79
191
  msgstr "Lista de valores separadas por comas."
80
192
 
81
- #: lib/hammer_cli/options/normalizers.rb:58
193
+ #: lib/hammer_cli/options/normalizers.rb:69
82
194
  msgid "One of true/false, yes/no, 1/0."
83
195
  msgstr "Uno de verdadero/falso, si/no, 1/0."
84
196
 
85
- #: lib/hammer_cli/options/normalizers.rb:68
197
+ #: lib/hammer_cli/options/normalizers.rb:79
86
198
  msgid "value must be one of true/false, yes/no, 1/0"
87
199
  msgstr "el valor debe ser uno de verdadero/falso, si/no, 1/0"
88
200
 
89
- #: lib/hammer_cli/options/normalizers.rb:107
201
+ #: lib/hammer_cli/options/normalizers.rb:118
90
202
  msgid "Unable to parse JSON input"
91
203
  msgstr "Imposible analizar la entrada JSON"
92
204
 
93
- #: lib/hammer_cli/options/normalizers.rb:120
205
+ #: lib/hammer_cli/options/normalizers.rb:131
94
206
  msgid "One of %s"
95
207
  msgstr "Uno de %s"
96
208
 
97
- #: lib/hammer_cli/options/normalizers.rb:127
209
+ #: lib/hammer_cli/options/normalizers.rb:138
98
210
  msgid "value must be one of '%s'"
99
211
  msgstr "valor debe ser uno de '%s'"
100
212
 
101
- #: lib/hammer_cli/options/normalizers.rb:146
213
+ #: lib/hammer_cli/options/normalizers.rb:157
102
214
  msgid "Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format"
103
215
  msgstr "Fecha y hora en YYYY-MM-DD HH:MM:SS o formato ISO 8601"
104
216
 
105
- #: lib/hammer_cli/options/normalizers.rb:153
217
+ #: lib/hammer_cli/options/normalizers.rb:164
106
218
  msgid "'%s' is not a valid date"
107
219
  msgstr "'%s' no es una fecha válida"
108
220
 
109
- #: lib/hammer_cli/options/normalizers.rb:164
221
+ #: lib/hammer_cli/options/normalizers.rb:175
110
222
  msgid "Any combination (comma separated list) of '%s'"
111
223
  msgstr "Cualquier combinación (lista separada por comas) de '%s'"
112
224
 
113
- #: lib/hammer_cli/options/normalizers.rb:184
225
+ #: lib/hammer_cli/options/normalizers.rb:195
114
226
  msgid "value must be a combination of '%s'"
115
227
  msgstr "el valor debe ser una combinación de '%s'"
116
228
 
117
- #: lib/hammer_cli/logger.rb:28
118
- msgid "No permissions to create log dir %s"
119
- msgstr "No tiene permiso para crear el directorio de log %s"
120
-
121
- #: lib/hammer_cli/logger.rb:43
122
- msgid "File %s not writeable, won't log anything to the file!"
123
- msgstr "El archivo %s no tiene acceso de escritura, no se guardará ningún log en él!"
124
-
125
- #: lib/hammer_cli/main.rb:7
126
- msgid "be verbose"
127
- msgstr "dé más detalles"
128
-
129
- #: lib/hammer_cli/main.rb:8
130
- msgid "show debugging output "
131
- msgstr "muestra salida de depuración"
132
-
133
- #: lib/hammer_cli/main.rb:9
134
- msgid "path to custom config file"
135
- msgstr "ruta al fichero de configuración personalizado"
136
-
137
- #: lib/hammer_cli/main.rb:11
138
- msgid "username to access the remote system"
139
- msgstr "nombre de usuario de acceso al sistema remoto"
140
-
141
- #: lib/hammer_cli/main.rb:13
142
- msgid "password to access the remote system"
143
- msgstr "palabra clave de acceso al sistema remoto"
144
-
145
- #: lib/hammer_cli/main.rb:15
146
- msgid "remote system address"
147
- msgstr "dirección del sistema remoto"
148
-
149
- #: lib/hammer_cli/main.rb:18
150
- msgid "show version"
151
- msgstr "mostrar versión"
152
-
153
- #: lib/hammer_cli/main.rb:27
154
- msgid "Show ids of associated resources"
155
- msgstr "Mostrar id de recursos asociados"
156
-
157
- #: lib/hammer_cli/main.rb:29
158
- msgid "Explicitly turn interactive mode on/off"
159
- msgstr "Active/desactive el modo interactivo explícitamente"
160
-
161
- #: lib/hammer_cli/main.rb:33
162
- msgid "Output as CSV (same as --output=csv)"
163
- msgstr "Exporte como CSV (equivale a --output=csv)"
164
-
165
- #: lib/hammer_cli/main.rb:34
166
- msgid "Set output format. One of [%s]"
167
- msgstr "Establece el formato de salida. Uno de [%s]"
168
-
169
- #: lib/hammer_cli/main.rb:37
170
- msgid "Character to separate the values"
171
- msgstr "Caracter de separación de valores"
172
-
173
- #: lib/hammer_cli/main.rb:41
174
- msgid "Get list of possible endings"
175
- msgstr "Obtenga lista de finales posibles"
176
-
177
229
  #: lib/hammer_cli/settings.rb:28
178
230
  msgid ""
179
231
  "Warning: location hammer.modules.d is deprecated, move your module "
180
232
  "configurations to cli.modules.d"
181
233
  msgstr "Aviso: la localización hammer.modules.d está obsoleta, mueva sus módulos de configuración a cli.modules.d"
182
234
 
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 "Se ha detectado una configuración de módulos arcaica. Mire la sección sobre configuración en el manual de usuario "
188
-
189
- #: lib/hammer_cli/modules.rb:42
190
- msgid "Warning: An error occured while loading module %s"
191
- msgstr "Advertencia: Ha ocurrido un error al cargar el módulo %s"
192
-
193
235
  #: lib/hammer_cli/exception_handler.rb:60
194
236
  msgid "Error: %s"
195
237
  msgstr "Error: %s"
196
238
 
197
239
  #: lib/hammer_cli/exception_handler.rb:66
198
240
  msgid "Error: %{message}"
199
- msgstr ""
241
+ msgstr "Error: %{message}"
200
242
 
201
243
  #: lib/hammer_cli/exception_handler.rb:67
202
244
  msgid "See: '%{path} --help'"
203
- msgstr ""
245
+ msgstr "Mire: '%{path} --help'"
204
246
 
205
247
  #: lib/hammer_cli/exception_handler.rb:84
206
248
  msgid "Invalid username or password"
@@ -208,37 +250,25 @@ msgstr "Nombre o password inválidos"
208
250
 
209
251
  #: lib/hammer_cli/exception_handler.rb:91
210
252
  msgid "Could not load the API description from the server"
211
- msgstr ""
253
+ msgstr "No se pudo cargar la descripción de la API desde el servidor"
212
254
 
213
255
  #: lib/hammer_cli/exception_handler.rb:92
214
256
  msgid "is the server down?"
215
- msgstr ""
257
+ msgstr "está el servidor apagado?"
216
258
 
217
259
  #: lib/hammer_cli/exception_handler.rb:93
218
260
  msgid ""
219
261
  "was '%s' run on the server when using apipie cache? (typical production "
220
262
  "settings)"
221
- msgstr ""
222
-
223
- #: lib/hammer_cli/validator.rb:41
224
- msgid "Unknown option name '%s'"
225
- msgstr "Nombre de opción desconocida '%s'"
263
+ msgstr "¿se ejecutó '%s' en el servidor al usar la caché apipe? (configuración típica de producción)"
226
264
 
227
- #: lib/hammer_cli/validator.rb:62
228
- msgid "You can't set all options %s at one time"
229
- msgstr "No se puede establecer todas las opciones %s al mismo tiempo"
230
-
231
- #: lib/hammer_cli/validator.rb:63
232
- msgid "Options %s are required"
233
- msgstr "Se necesita las opciones %s"
234
-
235
- #: lib/hammer_cli/validator.rb:79
236
- msgid "You can't set any of options %s"
237
- msgstr "No se puede establecer ninguna de las opciones %s"
265
+ #: lib/hammer_cli/output/formatters.rb:154
266
+ msgid "no"
267
+ msgstr "no"
238
268
 
239
- #: lib/hammer_cli/validator.rb:80
240
- msgid "At least one of options %s is required"
241
- msgstr "Se necesita al menos una de las opciones %s"
269
+ #: lib/hammer_cli/output/formatters.rb:154
270
+ msgid "yes"
271
+ msgstr ""
242
272
 
243
273
  #: lib/hammer_cli/output/adapter/csv.rb:171
244
274
  msgid "Message"
@@ -252,41 +282,12 @@ msgstr "Id"
252
282
  msgid "Name"
253
283
  msgstr "Nombre"
254
284
 
255
- #: lib/hammer_cli/output/formatters.rb:154
256
- msgid "no"
257
- msgstr "no"
258
-
259
- #: lib/hammer_cli/output/formatters.rb:154
260
- msgid "yes"
261
- msgstr "sí"
262
-
263
- #: lib/hammer_cli/shell.rb:10
264
- msgid "Print help for commands"
265
- msgstr "Imprime ayuda de comandos"
266
-
267
- #: lib/hammer_cli/shell.rb:22
268
- msgid "Exit interactive shell"
269
- msgstr "Salir del shell interactivo"
270
-
271
- #: lib/hammer_cli/shell.rb:120
272
- msgid "Welcome to the hammer interactive shell"
273
- msgstr "Bienvenido al shell interactivo de hammer"
274
-
275
- #: lib/hammer_cli/shell.rb:121
276
- msgid "Type 'help' for usage information"
277
- msgstr "Escriba 'help' para obtener información de uso"
278
-
279
- #: lib/hammer_cli/shell.rb:122
285
+ #: lib/hammer_cli/modules.rb:10
280
286
  msgid ""
281
- "Command completion is disabled on ruby < 1.9 due to compatibility problems."
282
- msgstr "El completado de comandos está deshabilitado para ruby <1.9 debido a problemas de compatibilidad."
283
-
284
- #: lib/hammer_cli/shell.rb:138
285
- msgid "Interactive shell"
286
- msgstr "Shell interactivo"
287
+ "Legacy configuration of modules detected. Check section about configuration "
288
+ "in user manual"
289
+ msgstr "Se ha detectado una configuración de módulos arcaica. Mire la sección sobre configuración en el manual de usuario "
287
290
 
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 ""
291
+ #: lib/hammer_cli/modules.rb:42
292
+ msgid "Warning: An error occured while loading module %s"
293
+ msgstr "Advertencia: Ha ocurrido un error al cargar el módulo %s"