Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better output when incorrect args in uninstall #1057

Merged
merged 1 commit into from
Nov 19, 2019

Conversation

alenkacz
Copy link
Contributor

What this PR does / why we need it:
This is the new output. I think that is much more user friendly.

./bin/kubectl-kudo uninstall mysql-instance
Error: The command expects no arguments and --instance flag must be provided.
 Usage:
  kubectl-kudo uninstall [flags]

Examples:
kubectl kudo uninstall --instance flink

Flags:
  -h, --help              help for uninstall
      --instance string   The instance name.

Global Flags:
      --home string           location of your KUDO config. (default "/Users/alenavarkockova/.kudo")
      --kubeconfig string     Path to your Kubernetes configuration file. (default "/Users/alenavarkockova/.kube/config")
  -n, --namespace string      Target namespace for the object. (default "default")
      --request-timeout int   Request timeout value, in seconds.  Defaults to 0 (unlimited)
  -v, --v                     log level for V logs

Partial improvement for #1055

Copy link
Member

@gerred gerred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 🎉

@alenkacz alenkacz merged commit fc1ef45 into master Nov 19, 2019
@alenkacz alenkacz deleted the av/better-output-uninstall branch November 19, 2019 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants