summaryrefslogtreecommitdiff
path: root/cmd/podman/system/connection/remove.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-19 17:35:43 +0200
committerGitHub <noreply@github.com>2022-09-19 17:35:43 +0200
commit5f5d40084c71a5adabc029c97d682c33cab07353 (patch)
tree1ad481a8d7d177ad6f1f1fffbddf21c5e7b72ff5 /cmd/podman/system/connection/remove.go
parent541655f31a5301ea042d04782d1635ad51e9f434 (diff)
parent3508bd22fe355630453d497d905e480974a84b96 (diff)
downloadpodman-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.go8
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 {