hammer_cli 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes.md +3 -0
- 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
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc020640c6f4416caa469fe39b9c029bd7feec0730a626636753046b400ac3be
|
4
|
+
data.tar.gz: aa7fc51d9a7ec86bb2ba0b512c9272696a399272bf90ed8e40604bfe849247dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b271be2146f0d730bb71e66b6ab785481b2a81ac762e101337936dcee5ae540468b060b11753ca732d5a26ded757365f2d6f52db9bee7031c767ec1db6f3f654
|
7
|
+
data.tar.gz: 23bfbb0ff4bbe1f556860fce41a14a39a7e17890807d85f96d09e9ff101cc254275ecce8b42f8502518da7f452f6a5101b318569f51b61a880eff4c914980d40
|
data/doc/release_notes.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
|
+
### 2.1.2 (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)
|
5
|
+
|
3
6
|
### 2.1.1 (2020-05-29)
|
4
7
|
* Clean gem_release.ipynb up
|
5
8
|
* Replace awesome_print with amazing_print ([PR #330](https://github.com/theforeman/hammer-cli/pull/330)), [#29846](http://projects.theforeman.org/issues/29846)
|
@@ -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
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.1.
|
4
|
+
version: 2.1.2
|
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
|
@@ -165,13 +165,13 @@ extra_rdoc_files:
|
|
165
165
|
- doc/installation.md
|
166
166
|
- doc/installation_deb.md
|
167
167
|
- doc/installation_gem.md
|
168
|
-
- doc/installation_rpm.md
|
169
|
-
- doc/installation_source.md
|
170
168
|
- doc/option_builders.md
|
171
169
|
- doc/option_normalizers.md
|
172
170
|
- doc/output.md
|
173
171
|
- doc/review_checklist.md
|
174
172
|
- doc/writing_a_plugin.md
|
173
|
+
- doc/installation_rpm.md
|
174
|
+
- doc/installation_source.md
|
175
175
|
- doc/release_notes.md
|
176
176
|
- config/cli.modules.d/module_config_template.yml
|
177
177
|
- config/cli_config.template.yml
|