replace over-write with overwrite
parent
8e696da904
commit
826f1852ab
|
@ -45,7 +45,7 @@ var (
|
|||
pull bool
|
||||
imgDaemon bool
|
||||
imgRemote bool
|
||||
overWrite bool
|
||||
overwrite bool
|
||||
tag string
|
||||
push bool
|
||||
dockerFile string
|
||||
|
@ -131,7 +131,7 @@ var loadImageCmd = &cobra.Command{
|
|||
if imgDaemon || imgRemote {
|
||||
image.UseDaemon(imgDaemon)
|
||||
image.UseRemote(imgRemote)
|
||||
if err := machine.CacheAndLoadImages(args, []*config.Profile{profile}, overWrite); err != nil {
|
||||
if err := machine.CacheAndLoadImages(args, []*config.Profile{profile}, overwrite); err != nil {
|
||||
exit.Error(reason.GuestImageLoad, "Failed to load image", err)
|
||||
}
|
||||
} else if local {
|
||||
|
@ -249,7 +249,7 @@ func init() {
|
|||
loadImageCmd.Flags().BoolVarP(&pull, "pull", "", false, "Pull the remote image (no caching)")
|
||||
loadImageCmd.Flags().BoolVar(&imgDaemon, "daemon", false, "Cache image from docker daemon")
|
||||
loadImageCmd.Flags().BoolVar(&imgRemote, "remote", false, "Cache image from remote registry")
|
||||
loadImageCmd.Flags().BoolVar(&overWrite, "over-write", true, "Over write the existing image if the name:tag of the images are the same")
|
||||
loadImageCmd.Flags().BoolVar(&overwrite, "overwrite", true, "Overwrite the existing image if the name:tag of the images are the same")
|
||||
imageCmd.AddCommand(loadImageCmd)
|
||||
imageCmd.AddCommand(removeImageCmd)
|
||||
buildImageCmd.Flags().StringVarP(&tag, "tag", "t", "", "Tag to apply to the new image (optional)")
|
||||
|
|
|
@ -142,10 +142,10 @@ minikube image load image.tar
|
|||
### Options
|
||||
|
||||
```
|
||||
--daemon Cache image from docker daemon
|
||||
--over-write Over write the existing image if the name:tag of the images are the same (default true)
|
||||
--pull Pull the remote image (no caching)
|
||||
--remote Cache image from remote registry
|
||||
--daemon Cache image from docker daemon
|
||||
--overwrite Overwrite the existing image if the name:tag of the images are the same (default true)
|
||||
--pull Pull the remote image (no caching)
|
||||
--remote Cache image from remote registry
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
|
|
|
@ -402,7 +402,7 @@
|
|||
"Options: {{.options}}": "",
|
||||
"Output format. Accepted values: [json]": "",
|
||||
"Outputs minikube shell completion for the given shell (bash, zsh or fish)\n\n\tThis depends on the bash-completion binary. Example installation instructions:\n\tOS X:\n\t\t$ brew install bash-completion\n\t\t$ source $(brew --prefix)/etc/bash_completion\n\t\t$ minikube completion bash \u003e ~/.minikube-completion # for bash users\n\t\t$ minikube completion zsh \u003e ~/.minikube-completion # for zsh users\n\t\t$ source ~/.minikube-completion\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\tUbuntu:\n\t\t$ apt-get install bash-completion\n\t\t$ source /etc/bash_completion\n\t\t$ source \u003c(minikube completion bash) # for bash users\n\t\t$ source \u003c(minikube completion zsh) # for zsh users\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\n\tAdditionally, you may want to output the completion to a file and source in your .bashrc\n\n\tNote for zsh users: [1] zsh completions are only supported in versions of zsh \u003e= 5.2\n\tNote for fish users: [2] please refer to this docs for more details https://fishshell.com/docs/current/#tab-completion\n": "",
|
||||
"Over write the existing image if the name:tag of the images are the same": "",
|
||||
"Overwrite the existing image if the name:tag of the images are the same": "",
|
||||
"Path to the Dockerfile to use (optional)": "",
|
||||
"Pause": "",
|
||||
"Paused {{.count}} containers": "",
|
||||
|
|
|
@ -407,7 +407,7 @@
|
|||
"Options: {{.options}}": "",
|
||||
"Output format. Accepted values: [json]": "",
|
||||
"Outputs minikube shell completion for the given shell (bash, zsh or fish)\n\n\tThis depends on the bash-completion binary. Example installation instructions:\n\tOS X:\n\t\t$ brew install bash-completion\n\t\t$ source $(brew --prefix)/etc/bash_completion\n\t\t$ minikube completion bash \u003e ~/.minikube-completion # for bash users\n\t\t$ minikube completion zsh \u003e ~/.minikube-completion # for zsh users\n\t\t$ source ~/.minikube-completion\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\tUbuntu:\n\t\t$ apt-get install bash-completion\n\t\t$ source /etc/bash_completion\n\t\t$ source \u003c(minikube completion bash) # for bash users\n\t\t$ source \u003c(minikube completion zsh) # for zsh users\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\n\tAdditionally, you may want to output the completion to a file and source in your .bashrc\n\n\tNote for zsh users: [1] zsh completions are only supported in versions of zsh \u003e= 5.2\n\tNote for fish users: [2] please refer to this docs for more details https://fishshell.com/docs/current/#tab-completion\n": "",
|
||||
"Over write the existing image if the name:tag of the images are the same": "",
|
||||
"Overwrite the existing image if the name:tag of the images are the same": "",
|
||||
"Path to the Dockerfile to use (optional)": "",
|
||||
"Pause": "",
|
||||
"Paused {{.count}} containers": "",
|
||||
|
|
|
@ -405,7 +405,7 @@
|
|||
"Options: {{.options}}": "",
|
||||
"Output format. Accepted values: [json]": "",
|
||||
"Outputs minikube shell completion for the given shell (bash, zsh or fish)\n\n\tThis depends on the bash-completion binary. Example installation instructions:\n\tOS X:\n\t\t$ brew install bash-completion\n\t\t$ source $(brew --prefix)/etc/bash_completion\n\t\t$ minikube completion bash \u003e ~/.minikube-completion # for bash users\n\t\t$ minikube completion zsh \u003e ~/.minikube-completion # for zsh users\n\t\t$ source ~/.minikube-completion\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\tUbuntu:\n\t\t$ apt-get install bash-completion\n\t\t$ source /etc/bash_completion\n\t\t$ source \u003c(minikube completion bash) # for bash users\n\t\t$ source \u003c(minikube completion zsh) # for zsh users\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\n\tAdditionally, you may want to output the completion to a file and source in your .bashrc\n\n\tNote for zsh users: [1] zsh completions are only supported in versions of zsh \u003e= 5.2\n\tNote for fish users: [2] please refer to this docs for more details https://fishshell.com/docs/current/#tab-completion\n": "",
|
||||
"Over write the existing image if the name:tag of the images are the same": "",
|
||||
"Overwrite the existing image if the name:tag of the images are the same": "",
|
||||
"Path to the Dockerfile to use (optional)": "",
|
||||
"Pause": "",
|
||||
"Paused {{.count}} containers": "",
|
||||
|
|
|
@ -397,7 +397,7 @@
|
|||
"Options: {{.options}}": "",
|
||||
"Output format. Accepted values: [json]": "",
|
||||
"Outputs minikube shell completion for the given shell (bash, zsh or fish)\n\n\tThis depends on the bash-completion binary. Example installation instructions:\n\tOS X:\n\t\t$ brew install bash-completion\n\t\t$ source $(brew --prefix)/etc/bash_completion\n\t\t$ minikube completion bash \u003e ~/.minikube-completion # for bash users\n\t\t$ minikube completion zsh \u003e ~/.minikube-completion # for zsh users\n\t\t$ source ~/.minikube-completion\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\tUbuntu:\n\t\t$ apt-get install bash-completion\n\t\t$ source /etc/bash_completion\n\t\t$ source \u003c(minikube completion bash) # for bash users\n\t\t$ source \u003c(minikube completion zsh) # for zsh users\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\n\tAdditionally, you may want to output the completion to a file and source in your .bashrc\n\n\tNote for zsh users: [1] zsh completions are only supported in versions of zsh \u003e= 5.2\n\tNote for fish users: [2] please refer to this docs for more details https://fishshell.com/docs/current/#tab-completion\n": "",
|
||||
"Over write the existing image if the name:tag of the images are the same": "",
|
||||
"Overwrite the existing image if the name:tag of the images are the same": "",
|
||||
"Path to the Dockerfile to use (optional)": "",
|
||||
"Pause": "",
|
||||
"Paused {{.count}} containers": "",
|
||||
|
|
|
@ -424,7 +424,7 @@
|
|||
"Options: {{.options}}": "옵션: {{.options}}",
|
||||
"Output format. Accepted values: [json]": "",
|
||||
"Outputs minikube shell completion for the given shell (bash, zsh or fish)\n\n\tThis depends on the bash-completion binary. Example installation instructions:\n\tOS X:\n\t\t$ brew install bash-completion\n\t\t$ source $(brew --prefix)/etc/bash_completion\n\t\t$ minikube completion bash \u003e ~/.minikube-completion # for bash users\n\t\t$ minikube completion zsh \u003e ~/.minikube-completion # for zsh users\n\t\t$ source ~/.minikube-completion\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\tUbuntu:\n\t\t$ apt-get install bash-completion\n\t\t$ source /etc/bash_completion\n\t\t$ source \u003c(minikube completion bash) # for bash users\n\t\t$ source \u003c(minikube completion zsh) # for zsh users\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\n\tAdditionally, you may want to output the completion to a file and source in your .bashrc\n\n\tNote for zsh users: [1] zsh completions are only supported in versions of zsh \u003e= 5.2\n\tNote for fish users: [2] please refer to this docs for more details https://fishshell.com/docs/current/#tab-completion\n": "",
|
||||
"Over write the existing image if the name:tag of the images are the same": "",
|
||||
"Overwrite the existing image if the name:tag of the images are the same": "",
|
||||
"Path to the Dockerfile to use (optional)": "",
|
||||
"Pause": "",
|
||||
"Paused {{.count}} containers": "",
|
||||
|
|
|
@ -417,7 +417,7 @@
|
|||
"Output format. Accepted values: [json]": "",
|
||||
"Outputs minikube shell completion for the given shell (bash or zsh)": "Zwraca autouzupełnianie poleceń minikube dla danej powłoki (bash, zsh)",
|
||||
"Outputs minikube shell completion for the given shell (bash, zsh or fish)\n\n\tThis depends on the bash-completion binary. Example installation instructions:\n\tOS X:\n\t\t$ brew install bash-completion\n\t\t$ source $(brew --prefix)/etc/bash_completion\n\t\t$ minikube completion bash \u003e ~/.minikube-completion # for bash users\n\t\t$ minikube completion zsh \u003e ~/.minikube-completion # for zsh users\n\t\t$ source ~/.minikube-completion\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\tUbuntu:\n\t\t$ apt-get install bash-completion\n\t\t$ source /etc/bash_completion\n\t\t$ source \u003c(minikube completion bash) # for bash users\n\t\t$ source \u003c(minikube completion zsh) # for zsh users\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\n\tAdditionally, you may want to output the completion to a file and source in your .bashrc\n\n\tNote for zsh users: [1] zsh completions are only supported in versions of zsh \u003e= 5.2\n\tNote for fish users: [2] please refer to this docs for more details https://fishshell.com/docs/current/#tab-completion\n": "",
|
||||
"Over write the existing image if the name:tag of the images are the same": "",
|
||||
"Overwrite the existing image if the name:tag of the images are the same": "",
|
||||
"Path to the Dockerfile to use (optional)": "",
|
||||
"Pause": "",
|
||||
"Paused {{.count}} containers": "",
|
||||
|
|
|
@ -377,7 +377,7 @@
|
|||
"Options: {{.options}}": "",
|
||||
"Output format. Accepted values: [json]": "",
|
||||
"Outputs minikube shell completion for the given shell (bash, zsh or fish)\n\n\tThis depends on the bash-completion binary. Example installation instructions:\n\tOS X:\n\t\t$ brew install bash-completion\n\t\t$ source $(brew --prefix)/etc/bash_completion\n\t\t$ minikube completion bash \u003e ~/.minikube-completion # for bash users\n\t\t$ minikube completion zsh \u003e ~/.minikube-completion # for zsh users\n\t\t$ source ~/.minikube-completion\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\tUbuntu:\n\t\t$ apt-get install bash-completion\n\t\t$ source /etc/bash_completion\n\t\t$ source \u003c(minikube completion bash) # for bash users\n\t\t$ source \u003c(minikube completion zsh) # for zsh users\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\n\tAdditionally, you may want to output the completion to a file and source in your .bashrc\n\n\tNote for zsh users: [1] zsh completions are only supported in versions of zsh \u003e= 5.2\n\tNote for fish users: [2] please refer to this docs for more details https://fishshell.com/docs/current/#tab-completion\n": "",
|
||||
"Over write the existing image if the name:tag of the images are the same": "",
|
||||
"Overwrite the existing image if the name:tag of the images are the same": "",
|
||||
"Path to the Dockerfile to use (optional)": "",
|
||||
"Pause": "",
|
||||
"Paused {{.count}} containers": "",
|
||||
|
|
|
@ -488,7 +488,7 @@
|
|||
"Options: {{.options}}": "",
|
||||
"Output format. Accepted values: [json]": "",
|
||||
"Outputs minikube shell completion for the given shell (bash, zsh or fish)\n\n\tThis depends on the bash-completion binary. Example installation instructions:\n\tOS X:\n\t\t$ brew install bash-completion\n\t\t$ source $(brew --prefix)/etc/bash_completion\n\t\t$ minikube completion bash \u003e ~/.minikube-completion # for bash users\n\t\t$ minikube completion zsh \u003e ~/.minikube-completion # for zsh users\n\t\t$ source ~/.minikube-completion\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\tUbuntu:\n\t\t$ apt-get install bash-completion\n\t\t$ source /etc/bash_completion\n\t\t$ source \u003c(minikube completion bash) # for bash users\n\t\t$ source \u003c(minikube completion zsh) # for zsh users\n\t\t$ minikube completion fish \u003e ~/.config/fish/completions/minikube.fish # for fish users\n\n\tAdditionally, you may want to output the completion to a file and source in your .bashrc\n\n\tNote for zsh users: [1] zsh completions are only supported in versions of zsh \u003e= 5.2\n\tNote for fish users: [2] please refer to this docs for more details https://fishshell.com/docs/current/#tab-completion\n": "",
|
||||
"Over write the existing image if the name:tag of the images are the same": "",
|
||||
"Overwrite the existing image if the name:tag of the images are the same": "",
|
||||
"Path to the Dockerfile to use (optional)": "",
|
||||
"Pause": "暂停",
|
||||
"Paused kubelet and {{.count}} containers": "已暂停 kubelet 和 {{.count}} 个容器",
|
||||
|
|
Loading…
Reference in New Issue