Skip to content

Commit

Permalink
Merge pull request canonical#11825 from bboozzoo/bboozzoo/cmd-set-quo…
Browse files Browse the repository at this point in the history
…ta-options-help

cmd/snap: add help strings for set-quota options
  • Loading branch information
mvo5 authored May 30, 2022
2 parents adf1d93 + b246546 commit 7f1f702
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmd/snap/cmd_quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,15 @@ An existing sub group cannot be moved from one parent to another.

func init() {
// TODO: unhide the commands when non-experimental
cmd := addCommand("set-quota", shortSetQuotaHelp, longSetQuotaHelp, func() flags.Commander { return &cmdSetQuota{} }, nil, nil)
cmd := addCommand("set-quota", shortSetQuotaHelp, longSetQuotaHelp,
func() flags.Commander { return &cmdSetQuota{} },
waitDescs.also(map[string]string{
"memory": i18n.G("Memory quota"),
"cpu": i18n.G("CPU quota"),
"cpu-set": i18n.G("CPU set quota"),
"threads": i18n.G("Threads quota"),
"parent": i18n.G("Parent quota group"),
}), nil)
cmd.hidden = true

cmd = addCommand("quota", shortQuotaHelp, longQuotaHelp, func() flags.Commander { return &cmdQuota{} }, nil, nil)
Expand Down

0 comments on commit 7f1f702

Please sign in to comment.