Fix english on prune prompt

Google docs found this while writing Podman in Action book.

[NO TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2021-09-24 09:15:23 -04:00
parent 9c48947c73
commit a97551eb20
2 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@ func prune(cmd *cobra.Command, args []string) error {
func createPruneWarningMessage(pruneOpts entities.ImagePruneOptions) string {
question := "Are you sure you want to continue? [y/N] "
if pruneOpts.All {
return "WARNING! This will remove all images without at least one container associated to them.\n" + question
return "WARNING! This command removes all images without at least one container associated with them.\n" + question
}
return "WARNING! This will remove all dangling images.\n" + question
return "WARNING! This command removes all dangling images.\n" + question
}

View File

@ -113,15 +113,15 @@ func prune(cmd *cobra.Command, args []string) error {
func createPruneWarningMessage(pruneOpts entities.SystemPruneOptions) string {
if pruneOpts.All {
return `WARNING! This will remove:
return `WARNING! This command removes:
- all stopped containers
- all networks not used by at least one container%s
- all images without at least one container associated to them
- all images without at least one container associated with them
- all build cache
%s`
}
return `WARNING! This will remove:
return `WARNING! This command removes:
- all stopped containers
- all networks not used by at least one container%s
- all dangling images