Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description to info output and fix typos #6

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/hammer_cli_foreman_resource_quota/resource_quota.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

module HammerCLIForemanResourceQuota

class ShowCommand < HammerCLIForeman::Command
output do
field :id, _('Id')
Expand All @@ -20,6 +19,7 @@ class ListCommand < HammerCLIForeman::ListCommand
field :id, _('Id')
field :name, _('Name')
field :created_at, _('Created at')
field :description, _('Description')
field :cpu_cores, _('CPU cores')
field :memory_mb, _('Memory [MiB]')
field :disk_gb, _('Disk space [GiB]')
Expand Down
4 changes: 2 additions & 2 deletions lib/hammer_cli_foreman_resource_quota/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ class InfoCommand < HammerCLIForeman::InfoCommand
output do
label N_('Resource quota settings') do
field :resource_quota_is_optional, _('Resource quota is optional'), Fields::Boolean
field :resource_quota_ids, N_('Resource quota ids')
field :resource_quota_ids, N_('Resource quota IDs')
end
end
end

class ListCommand < HammerCLIForeman::ListCommand
output do
field :resource_quota_is_optional, _('Resource quota optional'), Fields::Boolean
field :resource_quota_ids, N_('Resource quota ids')
field :resource_quota_ids, N_('Resource quota IDs')
end
end
end
Expand Down
Loading