-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add shorthand letter for --ui-size
#835
Conversation
Now we can use `-c` instead of `--config` and `-u` instead of `--ui-size` Signed-off-by: Yarden Shoham <git@yardenshoham.com>
The Label Bot has predicted the following:
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #835 +/- ##
=======================================
Coverage 18.62% 18.62%
=======================================
Files 20 20
Lines 2201 2201
=======================================
Hits 410 410
Misses 1752 1752
Partials 39 39
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, but -c
cannot be used instead of -config
because -c
is already taken in the subcommand add.
kubecm add [flags]
Note: If -c is set and more than one context is added to the kubeconfig file, the following will occur:
- If --context-name is set, the context will be generated as <context-name-0>, <context-name-1> ...
- If --context-name is not set, it will be generated as <file-name-{hash}> where {hash} is the MD5 hash of the file name.
# Merge test.yaml with $HOME/.kube/config
kubecm add -f test.yaml
# Merge test.yaml with $HOME/.kube/config and rename context name
kubecm add -cf test.yaml --context-name test
# Add kubeconfig from stdin
cat /etc/kubernetes/admin.conf | kubecm add -f -
--context-name string override context name when add kubeconfig context
-c, --cover Overwrite local kubeconfig files
-f, --file string Path to merge kubeconfig files
-h, --help help for add
Oh right. I will add it only for |
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
--config
and --ui-size
--ui-size
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 LGTM, Thanks for your contribute !
Now we can use
-u
instead of--ui-size