hammer_cli 2.1.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/installation_rpm.md +2 -2
- data/doc/installation_source.md +5 -2
- data/doc/release_notes.md +21 -0
- data/lib/hammer_cli/apipie/options.rb +2 -2
- data/lib/hammer_cli/help/builder.rb +0 -19
- data/lib/hammer_cli/logger_watch.rb +1 -1
- data/lib/hammer_cli/options/predefined.rb +1 -1
- 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
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96f7adf75924a417c91ebd6a06ffebb31df006263e7c8b756956d8e438bee5f6
|
4
|
+
data.tar.gz: 3bf87b0c2a7625fe341a5226606755300053f622b9543ee1c34fee2ed9905a35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deca360e00c00eda50d96c387f18c47371734b51267c2a4051252b8899c20ef3afb7f769c55a26ff0d0a91af31351f09fc7d6b99333b29275eecb9f8da41c8ad
|
7
|
+
data.tar.gz: c05d30ecd6439ce5a909d3f2d84f26e78205e82a4f476a035d78970a80f1dc09dc6c39be4b824a8451b47ae0e13baff4f46962a4ec46d48031018ca3ddc7bff5
|
data/doc/installation_rpm.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
### Installation from RPMs
|
2
2
|
|
3
|
-
#### Step 1:
|
3
|
+
#### Step 1: set up yum repositories
|
4
4
|
|
5
|
-
For Foreman 1.3 stable the hammer packages are part of your installation repo and you can skip this step.
|
5
|
+
For Foreman 1.3 stable, the hammer packages are part of your installation repo and you can skip this step.
|
6
6
|
|
7
7
|
You can choose from stable or nightly repo. Nightly has more recent version of hammer packages, but it was subject to less testing so there is a higher risk of issues.
|
8
8
|
Add the Foreman yum repository to your yum repo files. For Fedora installations replace 'el6' with 'f18' or 'f19' as appropriate.
|
data/doc/installation_source.md
CHANGED
@@ -8,6 +8,7 @@ Clone and install CLI core
|
|
8
8
|
```bash
|
9
9
|
$ git clone https://github.com/theforeman/hammer-cli.git
|
10
10
|
$ cd hammer-cli
|
11
|
+
$ bundle install
|
11
12
|
$ rake install
|
12
13
|
$ cd ..
|
13
14
|
```
|
@@ -17,6 +18,7 @@ clone plugin with foreman commands
|
|
17
18
|
```bash
|
18
19
|
$ git clone https://github.com/theforeman/hammer-cli-foreman.git
|
19
20
|
$ cd hammer-cli-foreman
|
21
|
+
$ bundle install
|
20
22
|
$ rake install
|
21
23
|
$ cd ..
|
22
24
|
```
|
@@ -25,7 +27,8 @@ and optionally other plugins.
|
|
25
27
|
|
26
28
|
|
27
29
|
#### Step 2: enable and configure the plugins
|
28
|
-
|
29
|
-
|
30
|
+
- Add the plugin as a gem to `Gemfile.local.rb`
|
31
|
+
- Copy the configuration files to proper locations manually,
|
32
|
+
please check our [configuration instructions](installation.md#configuration)
|
30
33
|
and see how to proceed.
|
31
34
|
|
data/doc/release_notes.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
|
+
### 2.3.0 (2020-11-03)
|
4
|
+
* Stop sending empty compute attrs param, [#30815](http://projects.theforeman.org/issues/30815)
|
5
|
+
* Make fuzzy search work in hammer shell ([PR #335](https://github.com/theforeman/hammer-cli/pull/335)), [#30747](http://projects.theforeman.org/issues/30747)
|
6
|
+
* Add details to installation from source doc ([PR #334](https://github.com/theforeman/hammer-cli/pull/334)), [#30666](http://projects.theforeman.org/issues/30666)
|
7
|
+
* Bump to 2.3.0-develop
|
8
|
+
* Bump to 2.2.0
|
9
|
+
|
10
|
+
### 2.3.0 (2020-11-03)
|
11
|
+
* Stop sending empty compute attrs param, [#30815](http://projects.theforeman.org/issues/30815)
|
12
|
+
* Make fuzzy search work in hammer shell ([PR #335](https://github.com/theforeman/hammer-cli/pull/335)), [#30747](http://projects.theforeman.org/issues/30747)
|
13
|
+
* Add details to installation from source doc ([PR #334](https://github.com/theforeman/hammer-cli/pull/334)), [#30666](http://projects.theforeman.org/issues/30666)
|
14
|
+
* Bump to 2.3.0-develop
|
15
|
+
* Bump to 2.2.0
|
16
|
+
|
17
|
+
### 2.2.0 (2020-08-11)
|
18
|
+
* Update installation_rpm.md ([PR #333](https://github.com/theforeman/hammer-cli/pull/333))
|
19
|
+
* Clean gem_release.ipynb up
|
20
|
+
* Replace awesome_print with amazing_print ([PR #330](https://github.com/theforeman/hammer-cli/pull/330)), [#29846](http://projects.theforeman.org/issues/29846)
|
21
|
+
* Fix typo: s/filed/feild/ ([PR #331](https://github.com/theforeman/hammer-cli/pull/331))
|
22
|
+
* Bump to 2.2.0-develop
|
23
|
+
|
3
24
|
### 2.1.0 (2020-05-14)
|
4
25
|
* Hammer full-help returns correct output, [#29697](http://projects.theforeman.org/issues/29697)
|
5
26
|
* Add fuzzy subcommand matching, [#29413](http://projects.theforeman.org/issues/29413)
|
@@ -10,11 +10,11 @@ module HammerCLI::Apipie
|
|
10
10
|
opts = {}
|
11
11
|
|
12
12
|
params.each do |p|
|
13
|
-
if p.expected_type == :hash
|
13
|
+
if p.expected_type == :hash && !p.params.empty?
|
14
14
|
opts[p.name] = method_options_for_params(p.params, options)
|
15
15
|
else
|
16
16
|
p_name = HammerCLI.option_accessor_name(p.name)
|
17
|
-
if options.
|
17
|
+
if options.key?(p_name)
|
18
18
|
opts[p.name] = options[p_name]
|
19
19
|
elsif respond_to?(p_name, true)
|
20
20
|
opt = send(p_name)
|
@@ -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
|
@@ -6,7 +6,7 @@ module HammerCLI
|
|
6
6
|
module Predefined
|
7
7
|
OPTIONS = {
|
8
8
|
fields: [['--fields'], 'FIELDS',
|
9
|
-
_('Show specified
|
9
|
+
_('Show specified fields or predefined field sets only. (See below)'),
|
10
10
|
format: HammerCLI::Options::Normalizers::List.new,
|
11
11
|
context_target: :fields]
|
12
12
|
}.freeze
|
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
|
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.
|
4
|
+
version: 2.3.0
|
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-11-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
|
-
name:
|
77
|
+
name: amazing_print
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|