mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +08:00
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:
@ -80,7 +80,7 @@ func prune(cmd *cobra.Command, args []string) error {
|
|||||||
func createPruneWarningMessage(pruneOpts entities.ImagePruneOptions) string {
|
func createPruneWarningMessage(pruneOpts entities.ImagePruneOptions) string {
|
||||||
question := "Are you sure you want to continue? [y/N] "
|
question := "Are you sure you want to continue? [y/N] "
|
||||||
if pruneOpts.All {
|
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
|
||||||
}
|
}
|
||||||
|
@ -113,15 +113,15 @@ func prune(cmd *cobra.Command, args []string) error {
|
|||||||
|
|
||||||
func createPruneWarningMessage(pruneOpts entities.SystemPruneOptions) string {
|
func createPruneWarningMessage(pruneOpts entities.SystemPruneOptions) string {
|
||||||
if pruneOpts.All {
|
if pruneOpts.All {
|
||||||
return `WARNING! This will remove:
|
return `WARNING! This command removes:
|
||||||
- all stopped containers
|
- all stopped containers
|
||||||
- all networks not used by at least one container%s
|
- 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
|
- all build cache
|
||||||
|
|
||||||
%s`
|
%s`
|
||||||
}
|
}
|
||||||
return `WARNING! This will remove:
|
return `WARNING! This command removes:
|
||||||
- all stopped containers
|
- all stopped containers
|
||||||
- all networks not used by at least one container%s
|
- all networks not used by at least one container%s
|
||||||
- all dangling images
|
- all dangling images
|
||||||
|
Reference in New Issue
Block a user