Add container subcommands#5799
Conversation
where applicable, add the container commands to the container sub menu Signed-off-by: Brent Baude <bbaude@redhat.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: baude The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
LGTM |
| }) | ||
| registry.Commands = append(registry.Commands, registry.CliCommand{ | ||
| Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode}, | ||
| Command: unpauseCommand, |
There was a problem hiding this comment.
nit, it would good to switch the order of lines 36 and 37 to match the other commands.
|
One nit for consideration, otherwise LGTM |
vrothberg
left a comment
There was a problem hiding this comment.
I fear we are inconsistent with how we're dealing with commands that are both under main and another sub-command (e.g., image or container). While pull and others create a new cobra.Command with an updated .Example text, we are using the same one here.
I am okay with doing either but want it to be consistent.
|
☔ The latest upstream changes (presumably #5848) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@baude I prefer separate cobra.Commands where the duplicated fields are copied, and unique fields like When the command is a different name, I have been creating new files. For example, |
|
@baude: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
where applicable, add the container commands to the container sub menu
Signed-off-by: Brent Baude bbaude@redhat.com