Skip to content

Commit a3341a6

Browse files
update help message
Co-authored-by: Pravin Pushkar <[email protected]> Signed-off-by: tianya <[email protected]>
1 parent 9200b3d commit a3341a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmd/init.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ dapr init --runtime-path <path-to-install-directory>
148148
}
149149

150150
if !utils.IsValidContainerRuntime(containerRuntime) {
151-
print.FailureStatusEvent(os.Stdout, "Invalid container runtime. Supported values are docker and podman and containerd.")
151+
print.FailureStatusEvent(os.Stdout, "Invalid container runtime. Supported values are docker, podman and containerd.")
152152
os.Exit(1)
153153
}
154154
err := standalone.Init(runtimeVersion, dashboardVersion, dockerNetwork, slimMode, imageRegistryURI, fromDir, containerRuntime, imageVariant, daprRuntimePath)
@@ -194,7 +194,7 @@ func init() {
194194
InitCmd.Flags().BoolP("help", "h", false, "Print this help message")
195195
InitCmd.Flags().StringArrayVar(&values, "set", []string{}, "set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
196196
InitCmd.Flags().String("image-registry", "", "Custom/private docker image repository URL")
197-
InitCmd.Flags().StringVarP(&containerRuntime, "container-runtime", "", "docker", "The container runtime to use. Supported values are docker (default) and podman and containerd")
197+
InitCmd.Flags().StringVarP(&containerRuntime, "container-runtime", "", "docker", "The container runtime to use. Supported values are docker (default), podman and containerd")
198198

199199
RootCmd.AddCommand(InitCmd)
200200
}

cmd/uninstall.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ dapr uninstall --runtime-path <path-to-install-directory>
6969
err = kubernetes.Uninstall(uninstallNamespace, uninstallAll, timeout)
7070
} else {
7171
if !utils.IsValidContainerRuntime(uninstallContainerRuntime) {
72-
print.FailureStatusEvent(os.Stdout, "Invalid container runtime. Supported values are docker and podman and containerd.")
72+
print.FailureStatusEvent(os.Stdout, "Invalid container runtime. Supported values are docker, podman and containerd.")
7373
os.Exit(1)
7474
}
7575
print.InfoStatusEvent(os.Stdout, "Removing Dapr from your machine...")
@@ -92,6 +92,6 @@ func init() {
9292
UninstallCmd.Flags().String("network", "", "The Docker network from which to remove the Dapr runtime")
9393
UninstallCmd.Flags().StringVarP(&uninstallNamespace, "namespace", "n", "dapr-system", "The Kubernetes namespace to uninstall Dapr from")
9494
UninstallCmd.Flags().BoolP("help", "h", false, "Print this help message")
95-
UninstallCmd.Flags().StringVarP(&uninstallContainerRuntime, "container-runtime", "", "docker", "The container runtime to use. Supported values are docker (default) and podman and containerd")
95+
UninstallCmd.Flags().StringVarP(&uninstallContainerRuntime, "container-runtime", "", "docker", "The container runtime to use. Supported values are docker (default), podman and containerd")
9696
RootCmd.AddCommand(UninstallCmd)
9797
}

0 commit comments

Comments
 (0)