Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type-o and cleanup doc punctuation #13562

Merged
merged 1 commit into from
Mar 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions cmd/podman/machine/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var (
)

var (
destoryOptions machine.RemoveOptions
destroyOptions machine.RemoveOptions
)

func init() {
Expand All @@ -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 {
Expand All @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions docs/source/markdown/podman-machine-rm.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ Print usage statement.

#### **--force**, **-f**

Stop and delete without confirmation
Stop and delete without confirmation.

#### **--save-ignition**

Do not delete the generated ignition file
Do not delete the generated ignition file.

#### **--save-image**

Do not delete the VM image
Do not delete the VM image.

#### **--save-keys**

Expand All @@ -42,7 +42,7 @@ deleted.

## EXAMPLES

Remove a VM named "test1"
Remove a VM named "test1":

```
$ podman machine rm test1
Expand Down