diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-19 17:35:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 17:35:43 +0200 |
commit | 5f5d40084c71a5adabc029c97d682c33cab07353 (patch) | |
tree | 1ad481a8d7d177ad6f1f1fffbddf21c5e7b72ff5 /cmd/podman/system/connection/remove.go | |
parent | 541655f31a5301ea042d04782d1635ad51e9f434 (diff) | |
parent | 3508bd22fe355630453d497d905e480974a84b96 (diff) | |
download | podman-5f5d40084c71a5adabc029c97d682c33cab07353.tar.gz podman-5f5d40084c71a5adabc029c97d682c33cab07353.tar.bz2 podman-5f5d40084c71a5adabc029c97d682c33cab07353.zip |
Merge pull request #15072 from rhatdan/context
Add support for podman context as alias to podman system connection
Diffstat (limited to 'cmd/podman/system/connection/remove.go')
-rw-r--r-- | cmd/podman/system/connection/remove.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/podman/system/connection/remove.go b/cmd/podman/system/connection/remove.go index 29bf98c43..5ff0000d6 100644 --- a/cmd/podman/system/connection/remove.go +++ b/cmd/podman/system/connection/remove.go @@ -31,11 +31,19 @@ var ( func init() { registry.Commands = append(registry.Commands, registry.CliCommand{ Command: rmCmd, + Parent: system.ContextCmd, + }) + + registry.Commands = append(registry.Commands, registry.CliCommand{ + Command: rmCmd, Parent: system.ConnectionCmd, }) flags := rmCmd.Flags() flags.BoolVarP(&rmOpts.All, "all", "a", false, "Remove all connections") + + flags.BoolP("force", "f", false, "Ignored: for Docker compatibility") + _ = flags.MarkHidden("force") } func rm(cmd *cobra.Command, args []string) error { |