hammer_cli_foreman 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70a45953e142e7d3a67ee81e99bb5cc6fccaf179d2a61e44922f3b809196a178
4
- data.tar.gz: 6c958ff14e311eef47ac379a41ceb45cbabe7f7ed34b3d28c64c40fe963f2ca5
3
+ metadata.gz: 4787fbc9dbda1fcd2311672da8001300715cfc1448b82f985509a73cab3ab416
4
+ data.tar.gz: a2ee1f1044f4422181109b166040b8e83dd9c727310c7753e89d26c23dae3c7a
5
5
  SHA512:
6
- metadata.gz: 6d436e24f99cc80f70aff4ad2c0436a92d63e8b60b5f1aa1ebb787e0fe202404c686fe78397ae16ae9bb3f2261834f8a02db39417a2511fd562c316344933d7a
7
- data.tar.gz: 828772047e91923c3b6ac365fa942d381483988ed4c7303a1021d560e73d4f591d1656613ef45916cdc565fa3b7989a6b0f577c655c5624f5a5f8e9bdc82f24b
6
+ metadata.gz: d1fe6bb98a5c352f95ce509e7e56f7c398180aa3790d1105f2c7ffb98d8dcfca4e4ab1cda4331a1f70000a834a75671782ed8e1d6b7ba65b3d83b474f8a9f3c6
7
+ data.tar.gz: 8e490092a17af3fd13d8c8c5d6ff6f42227e3e9bfa888818975308679a0724e6f6e8183d811a3a47dcbd369da0e0f92ccf4b2131b4e90d9b0d17bda9c01950fc
data/doc/release_notes.md CHANGED
@@ -1,5 +1,11 @@
1
1
  Release notes
2
2
  =============
3
+ ### 3.4.0 (2022-08-09)
4
+ * Add options for table preferences cli ([PR #603](https://github.com/theforeman/hammer-cli-foreman/pull/603)), [#35219](http://projects.theforeman.org/issues/35219)
5
+ * I18n - extracting new, pulling from tx, [#34629](http://projects.theforeman.org/issues/34629)
6
+ * Fix config for transifex, [#34629](http://projects.theforeman.org/issues/34629)
7
+ * Bump to 3.4.0-develop
8
+
3
9
  ### 3.3.0 (2022-05-10)
4
10
  * Add kerberos negotiate auth support ([PR #555](https://github.com/theforeman/hammer-cli-foreman/pull/555)), [#8923](http://projects.theforeman.org/issues/8923)
5
11
  * Pin mocha gem to < 1.14.0
@@ -66,7 +66,8 @@ module HammerCLIForeman
66
66
  :user => [ s("login", _("User's login to search by")) ],
67
67
  :common_parameter => [ s_name(_("Common parameter name")) ],
68
68
  :template_combination => [],
69
- :compute_attribute => []
69
+ :compute_attribute => [],
70
+ :table_preference => []
70
71
  }
71
72
  DEFAULT_SEARCHABLES = [ s_name(_("Name to search by")) ]
72
73
 
@@ -0,0 +1,48 @@
1
+ module HammerCLIForeman
2
+ class TablePreference < HammerCLIForeman::Command
3
+ resource :table_preferences
4
+ command_name "table-preference"
5
+
6
+ class ListCommand < HammerCLIForeman::ListCommand
7
+ output do
8
+ field :id, _("Id")
9
+ field :name, _("Name")
10
+ field :columns, _("Columns"), Fields::List
11
+ end
12
+
13
+ build_options
14
+ end
15
+
16
+ class CreateCommand < HammerCLIForeman::CreateCommand
17
+ success_message _('Table preference created.')
18
+ failure_message _('Could not create table preference')
19
+
20
+ build_options
21
+ end
22
+
23
+ class UpdateCommand < HammerCLIForeman::UpdateCommand
24
+ success_message _('Table preference updated.')
25
+ failure_message _('Could not update table preference')
26
+
27
+ build_options
28
+ end
29
+
30
+ class InfoCommand < HammerCLIForeman::InfoCommand
31
+ output ListCommand.output_definition do
32
+ field :created_at, _("Created at"), Fields::Date
33
+ field :updated_at, _("Updated at"), Fields::Date
34
+ end
35
+
36
+ build_options
37
+ end
38
+
39
+ class DeleteCommand < HammerCLIForeman::DeleteCommand
40
+ success_message _('Table preference deleted.')
41
+ failure_message _('Could not remove table preference')
42
+
43
+ build_options
44
+ end
45
+
46
+ autoload_subcommands
47
+ end
48
+ end
@@ -90,6 +90,9 @@ module HammerCLIForeman
90
90
  lazy_subcommand('mail-notification', _("Managing personal mail notifications"),
91
91
  'HammerCLIForeman::UserMailNotification', 'hammer_cli_foreman/user_mail_notification'
92
92
  )
93
+ lazy_subcommand('table-preference', _("Managing table preferences"),
94
+ 'HammerCLIForeman::TablePreference', 'hammer_cli_foreman/table_preference'
95
+ )
93
96
  autoload_subcommands
94
97
  end
95
98
 
@@ -1,5 +1,5 @@
1
1
  module HammerCLIForeman
2
2
  def self.version
3
- @version ||= Gem::Version.new "3.3.0"
3
+ @version ||= Gem::Version.new "3.4.0"
4
4
  end
5
5
  end