hammer_cli 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/cli_config.template.yml +2 -2
- data/doc/release_notes.md +15 -0
- data/lib/hammer_cli/abstract.rb +22 -31
- data/lib/hammer_cli/apipie.rb +1 -0
- data/lib/hammer_cli/apipie/api_connection.rb +27 -0
- data/lib/hammer_cli/apipie/option_builder.rb +3 -3
- data/lib/hammer_cli/apipie/resource.rb +1 -26
- data/lib/hammer_cli/connection.rb +12 -11
- data/lib/hammer_cli/context.rb +4 -2
- data/lib/hammer_cli/exception_handler.rb +1 -1
- data/lib/hammer_cli/help/builder.rb +58 -0
- data/lib/hammer_cli/help/text_builder.rb +79 -0
- data/lib/hammer_cli/logger.rb +24 -21
- data/lib/hammer_cli/options/normalizers.rb +13 -2
- data/lib/hammer_cli/output/adapter/table.rb +2 -0
- data/lib/hammer_cli/output/formatters.rb +1 -1
- data/lib/hammer_cli/output/utils.rb +43 -0
- data/lib/hammer_cli/table_print/column.rb +19 -0
- data/lib/hammer_cli/table_print/formatter.rb +18 -0
- data/lib/hammer_cli/utils.rb +5 -1
- data/lib/hammer_cli/validator.rb +12 -2
- data/lib/hammer_cli/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ca/hammer-cli.edit.po +26 -15
- data/locale/ca/hammer-cli.po +22 -6
- data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/de/hammer-cli.edit.po +32 -20
- data/locale/de/hammer-cli.po +22 -6
- data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en/hammer-cli.edit.po +47 -29
- data/locale/en/hammer-cli.po +21 -5
- data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en_GB/hammer-cli.edit.po +28 -17
- data/locale/en_GB/hammer-cli.po +22 -6
- data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/es/hammer-cli.edit.po +28 -17
- data/locale/es/hammer-cli.po +22 -6
- data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/fr/hammer-cli.edit.po +28 -17
- data/locale/fr/hammer-cli.po +22 -6
- data/locale/hammer-cli.pot +49 -31
- data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/it/hammer-cli.edit.po +23 -12
- data/locale/it/hammer-cli.po +22 -6
- data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ja/hammer-cli.edit.po +28 -17
- data/locale/ja/hammer-cli.po +22 -6
- data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ko/hammer-cli.edit.po +27 -16
- data/locale/ko/hammer-cli.po +22 -6
- data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/pt_BR/hammer-cli.edit.po +30 -19
- data/locale/pt_BR/hammer-cli.po +22 -6
- data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ru/hammer-cli.edit.po +28 -17
- data/locale/ru/hammer-cli.po +22 -6
- data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_CN/hammer-cli.edit.po +28 -17
- data/locale/zh_CN/hammer-cli.po +22 -6
- data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_TW/hammer-cli.edit.po +27 -16
- data/locale/zh_TW/hammer-cli.po +22 -6
- data/man/hammer.1.gz +0 -0
- data/test/functional/help_test.rb +87 -0
- data/test/test_helper.rb +6 -0
- data/test/unit/abstract_test.rb +9 -0
- data/test/unit/apipie/api_connection_test.rb +38 -0
- data/test/unit/apipie/command_test.rb +6 -46
- data/test/unit/connection_test.rb +45 -54
- data/test/unit/exception_handler_test.rb +1 -1
- data/test/unit/fixtures/apipie/documented.json +1 -1
- data/test/unit/help/builder_test.rb +57 -0
- data/test/unit/help/text_builder_test.rb +140 -0
- data/test/unit/logger_test.rb +19 -0
- data/test/unit/options/normalizers_test.rb +12 -0
- data/test/unit/output/adapter/table_test.rb +101 -13
- data/test/unit/output/formatters_test.rb +6 -3
- data/test/unit/validator_test.rb +31 -2
- metadata +207 -179
data/lib/hammer_cli/logger.rb
CHANGED
@@ -50,30 +50,33 @@ module HammerCLI
|
|
50
50
|
NOCOLOR_LAYOUT = Logging::Layouts::Pattern.new(:pattern => pattern, :color_scheme => nil)
|
51
51
|
DEFAULT_LOG_DIR = '/var/log/hammer'
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
53
|
+
def self.initialize_logger(logger)
|
54
|
+
log_dir = File.expand_path(HammerCLI::Settings.get(:log_dir) || DEFAULT_LOG_DIR)
|
55
|
+
begin
|
56
|
+
FileUtils.mkdir_p(log_dir, :mode => 0750)
|
57
|
+
rescue Errno::EACCES => e
|
58
|
+
$stderr.puts _("No permissions to create log dir %s") % log_dir
|
59
|
+
end
|
59
60
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
end
|
61
|
+
filename = "#{log_dir}/hammer.log"
|
62
|
+
begin
|
63
|
+
logger.appenders = ::Logging.appenders.rolling_file('configure',
|
64
|
+
:filename => filename,
|
65
|
+
:layout => NOCOLOR_LAYOUT,
|
66
|
+
:truncate => false,
|
67
|
+
:keep => 5,
|
68
|
+
:size => (HammerCLI::Settings.get(:log_size) || 1)*1024*1024) # 1MB
|
69
|
+
# set owner and group (it's ignored if attribute is nil)
|
70
|
+
FileUtils.chown HammerCLI::Settings.get(:log_owner), HammerCLI::Settings.get(:log_group), filename
|
71
|
+
rescue ArgumentError => e
|
72
|
+
$stderr.puts _("File %s not writeable, won't log anything to the file!") % filename
|
73
|
+
end
|
74
74
|
|
75
|
-
|
75
|
+
logger.level = HammerCLI::Settings.get(:log_level)
|
76
|
+
logger
|
77
|
+
end
|
76
78
|
|
79
|
+
initialize_logger(Logging.logger.root)
|
77
80
|
end
|
78
81
|
|
79
82
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'json'
|
2
|
+
require 'csv'
|
2
3
|
|
3
4
|
module HammerCLI
|
4
5
|
module Options
|
@@ -78,15 +79,25 @@ module HammerCLI
|
|
78
79
|
end
|
79
80
|
end
|
80
81
|
|
82
|
+
CSV_ERROR_MESSAGES = {
|
83
|
+
/Missing or stray quote/ => _('Missing or stray quote.'),
|
84
|
+
/Unquoted fields do not allow/ => _('Unquoted fields do not allow \r or \n.'),
|
85
|
+
/Illegal quoting/ => _('Illegal quoting.'),
|
86
|
+
/Unclosed quoted field/ => _('Unclosed quoted field.'),
|
87
|
+
/Field size exceeded/ => _('Field size exceeded.')
|
88
|
+
}
|
81
89
|
|
82
90
|
class List < AbstractNormalizer
|
83
91
|
|
84
92
|
def description
|
85
|
-
_("Comma separated list of values.")
|
93
|
+
_("Comma separated list of values. Values containing comma should be double quoted")
|
86
94
|
end
|
87
95
|
|
88
96
|
def format(val)
|
89
|
-
val.is_a?(String)
|
97
|
+
(val.is_a?(String) && !val.empty?) ? CSV.parse_line(val) : []
|
98
|
+
rescue CSV::MalformedCSVError => e
|
99
|
+
message = CSV_ERROR_MESSAGES.find { |pattern,| pattern.match e.message } || [e.message]
|
100
|
+
raise ArgumentError.new(message.last)
|
90
101
|
end
|
91
102
|
end
|
92
103
|
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'unicode/display_width'
|
2
|
+
|
3
|
+
module HammerCLI
|
4
|
+
module Output
|
5
|
+
module Utils
|
6
|
+
def self.real_length(value)
|
7
|
+
decolorized = value.gsub(/\033\[[^m]*m/, '')
|
8
|
+
Unicode::DisplayWidth.of(decolorized)
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.real_char_length(ch)
|
12
|
+
Unicode::DisplayWidth.of(ch)
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.real_truncate(value, required_size)
|
16
|
+
size = 0
|
17
|
+
index = 0
|
18
|
+
has_colors = false
|
19
|
+
in_color = false
|
20
|
+
value.each_char do |ch|
|
21
|
+
if in_color
|
22
|
+
in_color = false if ch == "m"
|
23
|
+
elsif ch == "\e"
|
24
|
+
has_colors = in_color = true
|
25
|
+
else
|
26
|
+
increment = real_char_length(ch)
|
27
|
+
if size + increment > required_size
|
28
|
+
if has_colors
|
29
|
+
return value[0..index-1] + "\e[0m", size
|
30
|
+
else
|
31
|
+
return value[0..index-1], size
|
32
|
+
end
|
33
|
+
else
|
34
|
+
size += increment
|
35
|
+
end
|
36
|
+
end
|
37
|
+
index += 1
|
38
|
+
end
|
39
|
+
return value, size
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'hammer_cli/output/utils'
|
2
|
+
|
3
|
+
module TablePrint
|
4
|
+
class Column
|
5
|
+
def data_width
|
6
|
+
if multibyte_count
|
7
|
+
[
|
8
|
+
HammerCLI::Output::Utils.real_length(name),
|
9
|
+
Array(data).compact.collect(&:to_s).collect{|m| HammerCLI::Output::Utils.real_length(m) }.max
|
10
|
+
].compact.max || 0
|
11
|
+
else
|
12
|
+
[
|
13
|
+
name.length,
|
14
|
+
Array(data).compact.collect(&:to_s).collect(&:length).max
|
15
|
+
].compact.max || 0
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'hammer_cli/output/utils'
|
2
|
+
|
3
|
+
module TablePrint
|
4
|
+
class FixedWidthFormatter
|
5
|
+
def format(value)
|
6
|
+
value = value.to_s
|
7
|
+
padding = width - HammerCLI::Output::Utils.real_length(value)
|
8
|
+
if padding >= 0
|
9
|
+
value += (" " * padding)
|
10
|
+
else
|
11
|
+
value, real_length = HammerCLI::Output::Utils.real_truncate(value, width-3)
|
12
|
+
value += '...'
|
13
|
+
value += ' ' if real_length < (width - 3)
|
14
|
+
end
|
15
|
+
value
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/hammer_cli/utils.rb
CHANGED
@@ -43,8 +43,12 @@ end
|
|
43
43
|
|
44
44
|
module HammerCLI
|
45
45
|
|
46
|
+
def self.tty?
|
47
|
+
STDOUT.tty?
|
48
|
+
end
|
49
|
+
|
46
50
|
def self.interactive?
|
47
|
-
return false unless
|
51
|
+
return false unless tty?
|
48
52
|
return HammerCLI::Settings.get(:_params, :interactive) unless HammerCLI::Settings.get(:_params, :interactive).nil?
|
49
53
|
HammerCLI::Settings.get(:ui, :interactive) != false
|
50
54
|
end
|
data/lib/hammer_cli/validator.rb
CHANGED
@@ -42,8 +42,18 @@ module HammerCLI
|
|
42
42
|
@options[name]
|
43
43
|
end
|
44
44
|
|
45
|
+
def get_option_value(name)
|
46
|
+
opt = get_option(name)
|
47
|
+
value = opt.get
|
48
|
+
if value.nil?
|
49
|
+
defaults = opt.command.send(:context)[:defaults]
|
50
|
+
value = defaults.get_defaults(name.to_s) if defaults
|
51
|
+
end
|
52
|
+
value
|
53
|
+
end
|
54
|
+
|
45
55
|
def option_passed?(option_name)
|
46
|
-
!
|
56
|
+
!get_option_value(option_name).nil?
|
47
57
|
end
|
48
58
|
|
49
59
|
def option_switches(opts=nil)
|
@@ -79,7 +89,7 @@ module HammerCLI
|
|
79
89
|
end
|
80
90
|
|
81
91
|
def value
|
82
|
-
|
92
|
+
get_option_value(@to_check[0])
|
83
93
|
end
|
84
94
|
end
|
85
95
|
|
data/lib/hammer_cli/version.rb
CHANGED
Binary file
|
@@ -8,8 +8,8 @@ msgid ""
|
|
8
8
|
msgstr ""
|
9
9
|
"Project-Id-Version: Foreman\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2016-
|
12
|
-
"PO-Revision-Date: 2016-
|
11
|
+
"POT-Creation-Date: 2016-09-01 12:28+0200\n"
|
12
|
+
"PO-Revision-Date: 2016-09-02 10:08+0000\n"
|
13
13
|
"Last-Translator: Lukáš Zapletal\n"
|
14
14
|
"Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)\n"
|
15
15
|
"MIME-Version: 1.0\n"
|
@@ -55,8 +55,9 @@ msgid "no value provided"
|
|
55
55
|
msgstr "no s'ha proporcionat cap valor"
|
56
56
|
|
57
57
|
#: ../lib/hammer_cli/defaults.rb:77
|
58
|
-
msgid "
|
59
|
-
|
58
|
+
msgid ""
|
59
|
+
"Couldn't create %s. Please create the directory before setting defaults."
|
60
|
+
msgstr ""
|
60
61
|
|
61
62
|
#: ../lib/hammer_cli/defaults.rb:101
|
62
63
|
msgid "Defaults management"
|
@@ -128,9 +129,9 @@ msgstr "S'ha afegit l'opció per defecte %{key_val} amb el valor %{val_val}."
|
|
128
129
|
|
129
130
|
#: ../lib/hammer_cli/defaults_commands.rb:139
|
130
131
|
msgid ""
|
131
|
-
"
|
132
|
-
"available providers
|
133
|
-
msgstr "
|
132
|
+
"Provider %{name} was not found. See `hammer defaults providers` for "
|
133
|
+
"available providers."
|
134
|
+
msgstr ""
|
134
135
|
|
135
136
|
#: ../lib/hammer_cli/defaults_commands.rb:143
|
136
137
|
msgid ""
|
@@ -143,8 +144,8 @@ msgid "%{param} was deleted successfully."
|
|
143
144
|
msgstr "S'ha eliminat correctament %{param}."
|
144
145
|
|
145
146
|
#: ../lib/hammer_cli/defaults_commands.rb:151
|
146
|
-
msgid "You must specify value or a provider name,
|
147
|
-
msgstr "
|
147
|
+
msgid "You must specify value or a provider name, can't specify both."
|
148
|
+
msgstr ""
|
148
149
|
|
149
150
|
#: ../lib/hammer_cli/defaults_commands.rb:155
|
150
151
|
msgid "Couldn't find the requested param in %s."
|
@@ -327,15 +328,23 @@ msgstr "el valor ha de ser una combinació de '%s'"
|
|
327
328
|
msgid "Warning: Option %{option} is deprecated. %{message}"
|
328
329
|
msgstr "Advertència: L'opció %{option} està en desús. %{message}"
|
329
330
|
|
330
|
-
#: ../lib/hammer_cli/options/option_definition.rb:
|
331
|
+
#: ../lib/hammer_cli/options/option_definition.rb:75
|
332
|
+
msgid "Deprecated: %{deprecated_msg}"
|
333
|
+
msgstr ""
|
334
|
+
|
335
|
+
#: ../lib/hammer_cli/options/option_definition.rb:78
|
336
|
+
msgid "%{flag} is deprecated: %{deprecated_msg}"
|
337
|
+
msgstr ""
|
338
|
+
|
339
|
+
#: ../lib/hammer_cli/options/option_definition.rb:101
|
331
340
|
msgid "Can be specified multiple times. "
|
332
341
|
msgstr "Es pot especificar múltiples vegades."
|
333
342
|
|
334
|
-
#: ../lib/hammer_cli/options/option_definition.rb:
|
343
|
+
#: ../lib/hammer_cli/options/option_definition.rb:102
|
335
344
|
msgid "Default: "
|
336
345
|
msgstr "Per defecte:"
|
337
346
|
|
338
|
-
#: ../lib/hammer_cli/options/option_definition.rb:
|
347
|
+
#: ../lib/hammer_cli/options/option_definition.rb:102
|
339
348
|
msgid ", or "
|
340
349
|
msgstr ", o "
|
341
350
|
|
@@ -352,9 +361,7 @@ msgid "Name"
|
|
352
361
|
msgstr "Nom"
|
353
362
|
|
354
363
|
#: ../lib/hammer_cli/output/adapter/table.rb:63
|
355
|
-
msgid ""
|
356
|
-
"\"Page #{collection.meta.page} of #{pages} (use --page and --per-page for "
|
357
|
-
"navigation)\""
|
364
|
+
msgid "Page %{page} of %{total} (use --page and --per-page for navigation)"
|
358
365
|
msgstr ""
|
359
366
|
|
360
367
|
#: ../lib/hammer_cli/output/formatters.rb:160
|
@@ -371,6 +378,10 @@ msgid ""
|
|
371
378
|
"configurations to cli.modules.d"
|
372
379
|
msgstr "Advertència: la ubicació hammer.modules.d està en desús, moveu les configuracions dels vostres mòduls a cli.modules.d"
|
373
380
|
|
381
|
+
#: ../lib/hammer_cli/settings.rb:44
|
382
|
+
msgid "Warning: Couldn't load configuration file %{path}: %{message}"
|
383
|
+
msgstr ""
|
384
|
+
|
374
385
|
#: ../lib/hammer_cli/shell.rb:10
|
375
386
|
msgid "Print help for commands"
|
376
387
|
msgstr "Imprimeix l'ajuda per a les ordres"
|
data/locale/ca/hammer-cli.po
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
msgid ""
|
3
3
|
msgstr ""
|
4
|
-
"Project-Id-Version: hammer-cli 0.
|
4
|
+
"Project-Id-Version: hammer-cli 0.9.0\n"
|
5
5
|
"Report-Msgid-Bugs-To: \n"
|
6
6
|
"MIME-Version: 1.0\n"
|
7
7
|
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -124,9 +124,6 @@ msgstr "Error: %s"
|
|
124
124
|
msgid "See: '%{path} --help'"
|
125
125
|
msgstr ""
|
126
126
|
|
127
|
-
msgid "Invalid username or password"
|
128
|
-
msgstr "nom d'usuari no vàlid o contrasenya no vàlida"
|
129
|
-
|
130
127
|
msgid "Could not load the API description from the server"
|
131
128
|
msgstr ""
|
132
129
|
|
@@ -212,8 +209,27 @@ msgstr "Llista separada per comes de clau=valor."
|
|
212
209
|
msgid "value must be defined as a comma-separated list of key=value or valid JSON"
|
213
210
|
msgstr ""
|
214
211
|
|
215
|
-
msgid "
|
216
|
-
msgstr "
|
212
|
+
msgid "Missing or stray quote."
|
213
|
+
msgstr ""
|
214
|
+
|
215
|
+
msgid ""
|
216
|
+
"Unquoted fields do not allow
|
217
217
|
or \n"
|
218
|
+
"."
|
219
|
+
msgstr ""
|
220
|
+
|
221
|
+
msgid "Illegal quoting."
|
222
|
+
msgstr ""
|
223
|
+
|
224
|
+
msgid "Unclosed quoted field."
|
225
|
+
msgstr ""
|
226
|
+
|
227
|
+
msgid "Field size exceeded."
|
228
|
+
msgstr ""
|
229
|
+
|
230
|
+
msgid ""
|
231
|
+
"Comma separated list of values. Values containing comma should be double quote"
|
232
|
+
"d"
|
233
|
+
msgstr ""
|
218
234
|
|
219
235
|
msgid "numeric value is required"
|
220
236
|
msgstr ""
|
Binary file
|
@@ -8,14 +8,15 @@
|
|
8
8
|
# Ettore Atalan <atalanttore@googlemail.com>, 2014-2016
|
9
9
|
# simon11 <simon.stieger.98@live.de>, 2014
|
10
10
|
# simon11 <simon.stieger.98@live.de>, 2014
|
11
|
+
# tstrachota <tstrachota@redhat.com>, 2016
|
11
12
|
# Ulrich Habel <rhaen@pkgbox.de>, 2014
|
12
13
|
msgid ""
|
13
14
|
msgstr ""
|
14
15
|
"Project-Id-Version: Foreman\n"
|
15
16
|
"Report-Msgid-Bugs-To: \n"
|
16
|
-
"POT-Creation-Date: 2016-
|
17
|
-
"PO-Revision-Date: 2016-
|
18
|
-
"Last-Translator:
|
17
|
+
"POT-Creation-Date: 2016-09-01 12:28+0200\n"
|
18
|
+
"PO-Revision-Date: 2016-12-14 15:33+0000\n"
|
19
|
+
"Last-Translator: tstrachota <tstrachota@redhat.com>\n"
|
19
20
|
"Language-Team: German (http://www.transifex.com/foreman/foreman/language/de/)\n"
|
20
21
|
"MIME-Version: 1.0\n"
|
21
22
|
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -37,15 +38,15 @@ msgstr "Option '%<option>s' (oder Umgebung %<env>s) ist erforderlich"
|
|
37
38
|
|
38
39
|
#: ../lib/hammer_cli/clamp.rb:8
|
39
40
|
msgid "option '%<switch>s': %<message>s"
|
40
|
-
msgstr "Option '%<switch>s': %<message>
|
41
|
+
msgstr "Option '%<switch>s': %<message>s"
|
41
42
|
|
42
43
|
#: ../lib/hammer_cli/clamp.rb:9
|
43
44
|
msgid "parameter '%<param>s': %<message>s"
|
44
|
-
msgstr "Parameter '%<param>s': %<message>
|
45
|
+
msgstr "Parameter '%<param>s': %<message>s"
|
45
46
|
|
46
47
|
#: ../lib/hammer_cli/clamp.rb:10
|
47
48
|
msgid "%<env>s: %<message>s"
|
48
|
-
msgstr "%<env>s: %<message>
|
49
|
+
msgstr "%<env>s: %<message>s"
|
49
50
|
|
50
51
|
#: ../lib/hammer_cli/clamp.rb:11
|
51
52
|
msgid "Unrecognised option '%<switch>s'"
|
@@ -60,8 +61,9 @@ msgid "no value provided"
|
|
60
61
|
msgstr "kein Wert geliefert"
|
61
62
|
|
62
63
|
#: ../lib/hammer_cli/defaults.rb:77
|
63
|
-
msgid "
|
64
|
-
|
64
|
+
msgid ""
|
65
|
+
"Couldn't create %s. Please create the directory before setting defaults."
|
66
|
+
msgstr ""
|
65
67
|
|
66
68
|
#: ../lib/hammer_cli/defaults.rb:101
|
67
69
|
msgid "Defaults management"
|
@@ -133,9 +135,9 @@ msgstr "Hinzugefügte %{key_val} Standardoption mit Wert %{val_val}."
|
|
133
135
|
|
134
136
|
#: ../lib/hammer_cli/defaults_commands.rb:139
|
135
137
|
msgid ""
|
136
|
-
"
|
137
|
-
"available providers
|
138
|
-
msgstr "
|
138
|
+
"Provider %{name} was not found. See `hammer defaults providers` for "
|
139
|
+
"available providers."
|
140
|
+
msgstr ""
|
139
141
|
|
140
142
|
#: ../lib/hammer_cli/defaults_commands.rb:143
|
141
143
|
msgid ""
|
@@ -148,8 +150,8 @@ msgid "%{param} was deleted successfully."
|
|
148
150
|
msgstr "%{param} wurde erfolgreich gelöscht."
|
149
151
|
|
150
152
|
#: ../lib/hammer_cli/defaults_commands.rb:151
|
151
|
-
msgid "You must specify value or a provider name,
|
152
|
-
msgstr "
|
153
|
+
msgid "You must specify value or a provider name, can't specify both."
|
154
|
+
msgstr ""
|
153
155
|
|
154
156
|
#: ../lib/hammer_cli/defaults_commands.rb:155
|
155
157
|
msgid "Couldn't find the requested param in %s."
|
@@ -332,15 +334,23 @@ msgstr "Wert muss eine Kombination aus \"%s\" sein"
|
|
332
334
|
msgid "Warning: Option %{option} is deprecated. %{message}"
|
333
335
|
msgstr "Warnung: Option %{option} ist veraltet. %{message}"
|
334
336
|
|
335
|
-
#: ../lib/hammer_cli/options/option_definition.rb:
|
337
|
+
#: ../lib/hammer_cli/options/option_definition.rb:75
|
338
|
+
msgid "Deprecated: %{deprecated_msg}"
|
339
|
+
msgstr "Veraltet: %{deprecated_msg}"
|
340
|
+
|
341
|
+
#: ../lib/hammer_cli/options/option_definition.rb:78
|
342
|
+
msgid "%{flag} is deprecated: %{deprecated_msg}"
|
343
|
+
msgstr "%{flag} ist veraltet: %{deprecated_msg}"
|
344
|
+
|
345
|
+
#: ../lib/hammer_cli/options/option_definition.rb:101
|
336
346
|
msgid "Can be specified multiple times. "
|
337
347
|
msgstr "Kann mehrfach angegeben werden."
|
338
348
|
|
339
|
-
#: ../lib/hammer_cli/options/option_definition.rb:
|
349
|
+
#: ../lib/hammer_cli/options/option_definition.rb:102
|
340
350
|
msgid "Default: "
|
341
351
|
msgstr "Standard: "
|
342
352
|
|
343
|
-
#: ../lib/hammer_cli/options/option_definition.rb:
|
353
|
+
#: ../lib/hammer_cli/options/option_definition.rb:102
|
344
354
|
msgid ", or "
|
345
355
|
msgstr " oder "
|
346
356
|
|
@@ -357,10 +367,8 @@ msgid "Name"
|
|
357
367
|
msgstr "Name"
|
358
368
|
|
359
369
|
#: ../lib/hammer_cli/output/adapter/table.rb:63
|
360
|
-
msgid ""
|
361
|
-
"
|
362
|
-
"navigation)\""
|
363
|
-
msgstr "\"Seite #{collection.meta.page} von #{pages} (Navigation über --page und --per-page)\""
|
370
|
+
msgid "Page %{page} of %{total} (use --page and --per-page for navigation)"
|
371
|
+
msgstr ""
|
364
372
|
|
365
373
|
#: ../lib/hammer_cli/output/formatters.rb:160
|
366
374
|
msgid "no"
|
@@ -376,6 +384,10 @@ msgid ""
|
|
376
384
|
"configurations to cli.modules.d"
|
377
385
|
msgstr "Warnung: Speicherort hammer.modules.d ist veraltet, verlegen Sie Ihre Modulkonfigurationen nach cli.modules.d"
|
378
386
|
|
387
|
+
#: ../lib/hammer_cli/settings.rb:44
|
388
|
+
msgid "Warning: Couldn't load configuration file %{path}: %{message}"
|
389
|
+
msgstr ""
|
390
|
+
|
379
391
|
#: ../lib/hammer_cli/shell.rb:10
|
380
392
|
msgid "Print help for commands"
|
381
393
|
msgstr "Hilfe für Befehle anzeigen"
|