Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The plugin help text was not consistent - using `ns` in some cases and `kubectl ns` in others: $ ./kubectl-ns -h ... Usage: ns [new-namespace] [flags] Examples: # view the current namespace in your KUBECONFIG kubectl ns ... Flags: -h, --help help for ns ... With cobra 1.8.1 we can fix the issue by annotating the command so the help text matches the way we use the command. With this change we can use the executable name (kubectl-ns) as the `Use` argument, and have `kubectl ns` in the help text. Issues: - Requires Cobra release including spf13/cobra#2070 - Tested using local cobra with the require fix.
- Loading branch information