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

Feature request #18

Closed
cig0 opened this issue Dec 14, 2020 · 5 comments
Closed

Feature request #18

cig0 opened this issue Dec 14, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request kind/feature ategorizes issue or PR as related to a new feature.

Comments

@cig0
Copy link

cig0 commented Dec 14, 2020

Hi,

Me again :)

Please consider expanding kubecm with additional functionality specially useful when using aliases:

  kubecm {context,c} <NAME>  (to easily switch to context <NAME>)
  kubecm {context,c} -       (to quickly switch to the previous context)
  kubecm {context,c}         (to quickly find out the current context name. Optionally maybe a flag like --current could be useful)

% kubecm version
Version: 0.13.0
GoOs: darwin
GoArch: amd64

Thanks! 🙏

@sunny0826
Copy link
Owner

This function looks very similar to switch, have you tried the switch subcommand?

switch allows you to switch contexts quickly and has a search function.

@sunny0826 sunny0826 self-assigned this Dec 15, 2020
@sunny0826 sunny0826 added the enhancement New feature or request label Dec 15, 2020
@chenyg0911
Copy link

Yes, I think if put the context as a parameter, It would help to use alias or call it from a shell script.

@cig0
Copy link
Author

cig0 commented Dec 16, 2020

@sunny0826 sure, but in its current form you are able to select a context interactively, whereas something like kubecm s _context_ would be a very welcome addition :)

@sunny0826
Copy link
Owner

Thank you for the suggestion, I will add this feature

@sunny0826 sunny0826 added the kind/feature ategorizes issue or PR as related to a new feature. label Dec 17, 2020
@sunny0826 sunny0826 added this to To do in v0.13.1-roadmap Dec 17, 2020
sunny0826 added a commit that referenced this issue Dec 30, 2020
@sunny0826 sunny0826 moved this from To do to In progress in v0.13.1-roadmap Dec 30, 2020
sunny0826 added a commit that referenced this issue Dec 30, 2020
@sunny0826 sunny0826 moved this from In progress to Done in v0.13.1-roadmap Dec 31, 2020
@sunny0826
Copy link
Owner

This feature has been released in v0.13.1

you can use command

kubecm s <NAME>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kind/feature ategorizes issue or PR as related to a new feature.
Projects
No open projects
Development

No branches or pull requests

3 participants