hammer_cli 2.2.0 → 2.2.1
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.
- checksums.yaml +4 -4
- data/doc/release_notes.md +2 -6
- data/lib/hammer_cli/help/builder.rb +0 -19
- data/lib/hammer_cli/utils.rb +1 -1
- data/lib/hammer_cli/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
- data/man/hammer.1.gz +0 -0
- metadata +72 -72
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4f350c15926f88971bd4ca5a7c6e2de1a58c4f5500129e61a68b2ab7f3e2643
|
|
4
|
+
data.tar.gz: 9ff9f540add2c845efb74fdced769846fe9118a1dcafdab99537a3eb1d9263f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1540908ed1806938b8bf53819b0884a17bd2e6d095b5f2ab14a8843bb125e49934732546390475d60349ef9a2cc7bcbf44c19af7c8cbe76e1f61786d1b2b9a0a
|
|
7
|
+
data.tar.gz: 0c9f1525623225a28472b3221c528b0d03d425507263049b34ff4e0ebf167dc08ea3f9ed6f9014459930639a26935755327cb0a7b339c8f2affaa714179ab09c
|
data/doc/release_notes.md
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
Release notes
|
|
2
2
|
=============
|
|
3
|
-
### 2.2.
|
|
4
|
-
*
|
|
5
|
-
* Clean gem_release.ipynb up
|
|
6
|
-
* Replace awesome_print with amazing_print ([PR #330](https://github.com/theforeman/hammer-cli/pull/330)), [#29846](http://projects.theforeman.org/issues/29846)
|
|
7
|
-
* Fix typo: s/filed/feild/ ([PR #331](https://github.com/theforeman/hammer-cli/pull/331))
|
|
8
|
-
* Bump to 2.2.0-develop
|
|
3
|
+
### 2.2.1 (2020-09-04)
|
|
4
|
+
* Make fuzzy search work in hammer shell ([PR #335](https://github.com/theforeman/hammer-cli/pull/335)), [#30747](http://projects.theforeman.org/issues/30747)
|
|
9
5
|
|
|
10
6
|
### 2.1.0 (2020-05-14)
|
|
11
7
|
* Hammer full-help returns correct output, [#29697](http://projects.theforeman.org/issues/29697)
|
|
@@ -61,25 +61,6 @@ module HammerCLI
|
|
|
61
61
|
label = HighLine.color(label, :bold) if @richtext
|
|
62
62
|
puts label
|
|
63
63
|
end
|
|
64
|
-
|
|
65
|
-
private
|
|
66
|
-
|
|
67
|
-
def expand_invocation_path(path)
|
|
68
|
-
bits = path.split(' ')
|
|
69
|
-
parent_command = HammerCLI::MainCommand
|
|
70
|
-
new_path = (bits[1..-1] || []).each_with_object([]) do |bit, names|
|
|
71
|
-
subcommand = parent_command.find_subcommand(bit)
|
|
72
|
-
next if subcommand.nil?
|
|
73
|
-
|
|
74
|
-
names << if subcommand.names.size > 1
|
|
75
|
-
"<#{subcommand.names.join('|')}>"
|
|
76
|
-
else
|
|
77
|
-
subcommand.names.first
|
|
78
|
-
end
|
|
79
|
-
parent_command = subcommand.subcommand_class
|
|
80
|
-
end
|
|
81
|
-
new_path.unshift(bits.first).join(' ')
|
|
82
|
-
end
|
|
83
64
|
end
|
|
84
65
|
end
|
|
85
66
|
end
|
data/lib/hammer_cli/utils.rb
CHANGED
|
@@ -121,7 +121,7 @@ module HammerCLI
|
|
|
121
121
|
bits = path.split(' ')
|
|
122
122
|
parent_command = HammerCLI::MainCommand
|
|
123
123
|
new_path = (bits[1..-1] || []).each_with_object([]) do |bit, names|
|
|
124
|
-
subcommand = parent_command.find_subcommand(bit)
|
|
124
|
+
subcommand = parent_command.find_subcommand(bit, fuzzy: false)
|
|
125
125
|
next if subcommand.nil?
|
|
126
126
|
|
|
127
127
|
names << if subcommand.names.size > 1
|
data/lib/hammer_cli/version.rb
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/man/hammer.1.gz
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hammer_cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Bačovský
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2020-
|
|
12
|
+
date: 2020-09-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: clamp
|
|
@@ -145,7 +145,7 @@ dependencies:
|
|
|
145
145
|
version: 0.2.0
|
|
146
146
|
description: 'Hammer cli provides universal extendable CLI interface for ruby apps
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
'
|
|
149
149
|
email: mbacovsk@redhat.com
|
|
150
150
|
executables:
|
|
151
151
|
- hammer
|
|
@@ -153,26 +153,26 @@ executables:
|
|
|
153
153
|
extensions: []
|
|
154
154
|
extra_rdoc_files:
|
|
155
155
|
- doc/commands_extension.md
|
|
156
|
-
- doc/release_notes.md
|
|
157
|
-
- doc/design.png
|
|
158
156
|
- doc/commands_modification.md
|
|
159
|
-
- doc/
|
|
160
|
-
- doc/
|
|
161
|
-
- doc/
|
|
162
|
-
- doc/
|
|
157
|
+
- doc/creating_apipie_commands.md
|
|
158
|
+
- doc/creating_commands.md
|
|
159
|
+
- doc/design.png
|
|
160
|
+
- doc/design.uml
|
|
163
161
|
- doc/developer_docs.md
|
|
162
|
+
- doc/development_tips.md
|
|
163
|
+
- doc/help_modification.md
|
|
164
|
+
- doc/i18n.md
|
|
165
|
+
- doc/installation.md
|
|
164
166
|
- doc/installation_deb.md
|
|
165
|
-
- doc/option_normalizers.md
|
|
166
|
-
- doc/installation_rpm.md
|
|
167
167
|
- doc/installation_gem.md
|
|
168
|
-
- doc/help_modification.md
|
|
169
|
-
- doc/creating_commands.md
|
|
170
|
-
- doc/installation_source.md
|
|
171
168
|
- doc/option_builders.md
|
|
172
|
-
- doc/
|
|
169
|
+
- doc/option_normalizers.md
|
|
170
|
+
- doc/output.md
|
|
173
171
|
- doc/review_checklist.md
|
|
174
|
-
- doc/
|
|
175
|
-
- doc/
|
|
172
|
+
- doc/writing_a_plugin.md
|
|
173
|
+
- doc/installation_rpm.md
|
|
174
|
+
- doc/installation_source.md
|
|
175
|
+
- doc/release_notes.md
|
|
176
176
|
- config/cli.modules.d/module_config_template.yml
|
|
177
177
|
- config/cli_config.template.yml
|
|
178
178
|
- config/hammer.completion
|
|
@@ -394,75 +394,75 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
394
394
|
- !ruby/object:Gem::Version
|
|
395
395
|
version: '0'
|
|
396
396
|
requirements: []
|
|
397
|
-
rubygems_version: 3.
|
|
397
|
+
rubygems_version: 3.1.2
|
|
398
398
|
signing_key:
|
|
399
399
|
specification_version: 4
|
|
400
400
|
summary: Universal command-line interface
|
|
401
401
|
test_files:
|
|
402
|
-
- test/
|
|
403
|
-
- test/
|
|
404
|
-
- test/
|
|
405
|
-
- test/
|
|
406
|
-
- test/
|
|
407
|
-
- test/unit/
|
|
408
|
-
- test/unit/
|
|
409
|
-
- test/unit/test_helper.rb
|
|
410
|
-
- test/unit/utils_test.rb
|
|
402
|
+
- test/functional/defaults_test.rb
|
|
403
|
+
- test/functional/help_test.rb
|
|
404
|
+
- test/functional/nil_values_test.rb
|
|
405
|
+
- test/functional/test_helper.rb
|
|
406
|
+
- test/test_helper.rb
|
|
407
|
+
- test/unit/abstract_test.rb
|
|
408
|
+
- test/unit/apipie/api_connection_test.rb
|
|
411
409
|
- test/unit/apipie/command_test.rb
|
|
412
410
|
- test/unit/apipie/option_builder_test.rb
|
|
413
|
-
- test/unit/apipie/test_helper.rb
|
|
414
|
-
- test/unit/apipie/api_connection_test.rb
|
|
415
411
|
- test/unit/apipie/option_definition_test.rb
|
|
412
|
+
- test/unit/apipie/test_helper.rb
|
|
413
|
+
- test/unit/bash_test.rb
|
|
414
|
+
- test/unit/ca_cert_manager_test.rb
|
|
416
415
|
- test/unit/command_extensions_test.rb
|
|
417
|
-
- test/unit/
|
|
418
|
-
- test/unit/
|
|
419
|
-
- test/unit/
|
|
420
|
-
- test/unit/options/validators/dsl_test.rb
|
|
421
|
-
- test/unit/options/sources/command_line_test.rb
|
|
422
|
-
- test/unit/options/sources/saved_defaults_test.rb
|
|
423
|
-
- test/unit/options/matcher_test.rb
|
|
424
|
-
- test/unit/options/option_collector_test.rb
|
|
425
|
-
- test/unit/options/normalizers_test.rb
|
|
426
|
-
- test/unit/options/option_definition_test.rb
|
|
427
|
-
- test/unit/settings_test.rb
|
|
428
|
-
- test/unit/history_test.rb
|
|
416
|
+
- test/unit/completer_test.rb
|
|
417
|
+
- test/unit/connection_test.rb
|
|
418
|
+
- test/unit/csv_parser_test.rb
|
|
429
419
|
- test/unit/defaults_test.rb
|
|
430
|
-
- test/unit/
|
|
431
|
-
- test/unit/output/formatters_test.rb
|
|
432
|
-
- test/unit/output/record_collection_test.rb
|
|
433
|
-
- test/unit/output/dsl_test.rb
|
|
434
|
-
- test/unit/output/definition_test.rb
|
|
435
|
-
- test/unit/output/output_test.rb
|
|
436
|
-
- test/unit/output/field_filter_test.rb
|
|
437
|
-
- test/unit/output/fields_test.rb
|
|
438
|
-
- test/unit/output/adapter/table_test.rb
|
|
439
|
-
- test/unit/output/adapter/json_test.rb
|
|
440
|
-
- test/unit/output/adapter/abstract_test.rb
|
|
441
|
-
- test/unit/output/adapter/yaml_test.rb
|
|
442
|
-
- test/unit/output/adapter/csv_test.rb
|
|
443
|
-
- test/unit/output/adapter/base_test.rb
|
|
444
|
-
- test/unit/abstract_test.rb
|
|
445
|
-
- test/unit/i18n_test.rb
|
|
420
|
+
- test/unit/exception_handler_test.rb
|
|
446
421
|
- test/unit/fixtures/apipie/architectures.json
|
|
447
422
|
- test/unit/fixtures/apipie/documented.json
|
|
448
|
-
- test/unit/fixtures/defaults/defaults_dashed.yml
|
|
449
|
-
- test/unit/fixtures/defaults/defaults.yml
|
|
450
|
-
- test/unit/fixtures/json_input/valid.json
|
|
451
|
-
- test/unit/fixtures/json_input/invalid.json
|
|
452
423
|
- test/unit/fixtures/certs/ca_cert.pem
|
|
453
424
|
- test/unit/fixtures/certs/non_ca_cert.pem
|
|
454
|
-
- test/unit/
|
|
455
|
-
- test/unit/
|
|
456
|
-
- test/unit/
|
|
457
|
-
- test/unit/
|
|
425
|
+
- test/unit/fixtures/defaults/defaults.yml
|
|
426
|
+
- test/unit/fixtures/defaults/defaults_dashed.yml
|
|
427
|
+
- test/unit/fixtures/json_input/invalid.json
|
|
428
|
+
- test/unit/fixtures/json_input/valid.json
|
|
429
|
+
- test/unit/help/builder_test.rb
|
|
458
430
|
- test/unit/help/definition/abstract_item_test.rb
|
|
431
|
+
- test/unit/help/definition/list_test.rb
|
|
459
432
|
- test/unit/help/definition/note_test.rb
|
|
433
|
+
- test/unit/help/definition/section_test.rb
|
|
434
|
+
- test/unit/help/definition/text_test.rb
|
|
460
435
|
- test/unit/help/definition_test.rb
|
|
461
|
-
- test/unit/help/builder_test.rb
|
|
462
436
|
- test/unit/help/text_builder_test.rb
|
|
463
|
-
- test/unit/
|
|
464
|
-
- test/
|
|
465
|
-
- test/
|
|
466
|
-
- test/
|
|
467
|
-
- test/
|
|
468
|
-
- test/
|
|
437
|
+
- test/unit/history_test.rb
|
|
438
|
+
- test/unit/i18n_test.rb
|
|
439
|
+
- test/unit/logger_test.rb
|
|
440
|
+
- test/unit/main_test.rb
|
|
441
|
+
- test/unit/messages_test.rb
|
|
442
|
+
- test/unit/modules_test.rb
|
|
443
|
+
- test/unit/option_builder_test.rb
|
|
444
|
+
- test/unit/options/matcher_test.rb
|
|
445
|
+
- test/unit/options/normalizers_test.rb
|
|
446
|
+
- test/unit/options/option_collector_test.rb
|
|
447
|
+
- test/unit/options/option_definition_test.rb
|
|
448
|
+
- test/unit/options/option_family_test.rb
|
|
449
|
+
- test/unit/options/processor_list_test.rb
|
|
450
|
+
- test/unit/options/sources/command_line_test.rb
|
|
451
|
+
- test/unit/options/sources/saved_defaults_test.rb
|
|
452
|
+
- test/unit/options/validators/dsl_test.rb
|
|
453
|
+
- test/unit/output/adapter/abstract_test.rb
|
|
454
|
+
- test/unit/output/adapter/base_test.rb
|
|
455
|
+
- test/unit/output/adapter/csv_test.rb
|
|
456
|
+
- test/unit/output/adapter/json_test.rb
|
|
457
|
+
- test/unit/output/adapter/table_test.rb
|
|
458
|
+
- test/unit/output/adapter/yaml_test.rb
|
|
459
|
+
- test/unit/output/definition_test.rb
|
|
460
|
+
- test/unit/output/dsl_test.rb
|
|
461
|
+
- test/unit/output/field_filter_test.rb
|
|
462
|
+
- test/unit/output/fields_test.rb
|
|
463
|
+
- test/unit/output/formatters_test.rb
|
|
464
|
+
- test/unit/output/output_test.rb
|
|
465
|
+
- test/unit/output/record_collection_test.rb
|
|
466
|
+
- test/unit/settings_test.rb
|
|
467
|
+
- test/unit/test_helper.rb
|
|
468
|
+
- test/unit/utils_test.rb
|