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: ctx should support an initial command #123

Open
Jellyfrog opened this issue Dec 7, 2022 · 2 comments
Open

Feature request: ctx should support an initial command #123

Jellyfrog opened this issue Dec 7, 2022 · 2 comments

Comments

@Jellyfrog
Copy link

It would be great to support supplying an initial command to kubie ctx, similar to kubie exec with the difference that it should stay in the shell.

The suggested syntax would be like so:
kubie ctx [OPTIONS] [CONTEXT_NAME] -- [COMMAND]
The -- signals ctx should stop processing the rest of the input as arguments, in the same way kubectl exec and others does.

@ghostsquad
Copy link

why not just simply run kubie ctx followed by the command you want? Isn't that simpler?

@atimofeev
Copy link

Same here. I just want to set up an alias for running k9s after I select context via kubie ctx.

@ghostsquad, none of these options work for me:

❯ kubie ctx k9s
Error: Could not find context k9s
❯ kubie ctx -- k9s
Error: Could not find context k9s

How would you run it?

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

No branches or pull requests

3 participants