Fix typo in odo remove binding (#6449)

* Fix typo in odo remove binding

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Use add instead of create

Signed-off-by: Parthvi Vala <pvala@redhat.com>

Signed-off-by: Parthvi Vala <pvala@redhat.com>
This commit is contained in:
Parthvi Vala
2023-01-04 03:24:57 +05:30
committed by GitHub
parent ce8fdc1d5b
commit 520a31e9ba
2 changed files with 2 additions and 2 deletions

View File

@@ -199,7 +199,7 @@ func NewCmdBinding(name, fullName string) *cobra.Command {
return genericclioptions.GenericRun(o, cmd, args) return genericclioptions.GenericRun(o, cmd, args)
}, },
} }
bindingCmd.Flags().String(backend.FLAG_NAME, "", "Name of the Binding to create") bindingCmd.Flags().String(backend.FLAG_NAME, "", "Name of the Binding to add")
bindingCmd.Flags().String(backend.FLAG_WORKLOAD, "", "Name of the workload to bind, only when no devfile is present in current directory") bindingCmd.Flags().String(backend.FLAG_WORKLOAD, "", "Name of the workload to bind, only when no devfile is present in current directory")
bindingCmd.Flags().String(backend.FLAG_SERVICE, "", "Name of the service to bind") bindingCmd.Flags().String(backend.FLAG_SERVICE, "", "Name of the service to bind")
bindingCmd.Flags().String(backend.FLAG_SERVICE_NAMESPACE, "", "Namespace of the service to bind to. Default is the component namespace.") bindingCmd.Flags().String(backend.FLAG_SERVICE_NAMESPACE, "", "Namespace of the service to bind to. Default is the component namespace.")

View File

@@ -85,7 +85,7 @@ func NewCmdBinding(name, fullName string) *cobra.Command {
return genericclioptions.GenericRun(o, cmd, args) return genericclioptions.GenericRun(o, cmd, args)
}, },
} }
bindingCmd.Flags().String(backend.FLAG_NAME, "", "Name of the Binding to create") bindingCmd.Flags().String(backend.FLAG_NAME, "", "Name of the Binding to remove")
clientset.Add(bindingCmd, clientset.BINDING, clientset.FILESYSTEM) clientset.Add(bindingCmd, clientset.BINDING, clientset.FILESYSTEM)
return bindingCmd return bindingCmd