summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-19 22:22:41 +0100
committerGitHub <noreply@github.com>2022-03-19 22:22:41 +0100
commit978b188f7fc1bbf5faa4b6f4bc522ec7c7eb6a56 (patch)
treea9532db197b3e0a3c6010b0f8526e6e7f96b85d0 /cmd/podman
parent0248ba48974efd7cce0b89254b6e36d3d73b43ec (diff)
parentcc7b5974be1799bf63ddc197b0b4f8a0d778be59 (diff)
downloadpodman-978b188f7fc1bbf5faa4b6f4bc522ec7c7eb6a56.tar.gz
podman-978b188f7fc1bbf5faa4b6f4bc522ec7c7eb6a56.tar.bz2
podman-978b188f7fc1bbf5faa4b6f4bc522ec7c7eb6a56.zip
Merge pull request #13562 from n1hility/misc-cleanup
Fix type-o and cleanup doc punctuation
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/machine/rm.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/cmd/podman/machine/rm.go b/cmd/podman/machine/rm.go
index 82c68c4cf..617a70a76 100644
--- a/cmd/podman/machine/rm.go
+++ b/cmd/podman/machine/rm.go
@@ -27,7 +27,7 @@ var (
)
var (
- destoryOptions machine.RemoveOptions
+ destroyOptions machine.RemoveOptions
)
func init() {
@@ -38,16 +38,16 @@ func init() {
flags := rmCmd.Flags()
formatFlagName := "force"
- flags.BoolVarP(&destoryOptions.Force, formatFlagName, "f", false, "Stop and do not prompt before rming")
+ flags.BoolVarP(&destroyOptions.Force, formatFlagName, "f", false, "Stop and do not prompt before rming")
keysFlagName := "save-keys"
- flags.BoolVar(&destoryOptions.SaveKeys, keysFlagName, false, "Do not delete SSH keys")
+ flags.BoolVar(&destroyOptions.SaveKeys, keysFlagName, false, "Do not delete SSH keys")
ignitionFlagName := "save-ignition"
- flags.BoolVar(&destoryOptions.SaveIgnition, ignitionFlagName, false, "Do not delete ignition file")
+ flags.BoolVar(&destroyOptions.SaveIgnition, ignitionFlagName, false, "Do not delete ignition file")
imageFlagName := "save-image"
- flags.BoolVar(&destoryOptions.SaveImage, imageFlagName, false, "Do not delete the image file")
+ flags.BoolVar(&destroyOptions.SaveImage, imageFlagName, false, "Do not delete the image file")
}
func rm(cmd *cobra.Command, args []string) error {
@@ -65,12 +65,12 @@ func rm(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
- confirmationMessage, remove, err := vm.Remove(vmName, destoryOptions)
+ confirmationMessage, remove, err := vm.Remove(vmName, destroyOptions)
if err != nil {
return err
}
- if !destoryOptions.Force {
+ if !destroyOptions.Force {
// Warn user
fmt.Println(confirmationMessage)
reader := bufio.NewReader(os.Stdin)