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

Allow command-line options for the editor to be specified via KUBE_EDITOR env. variable #14

Merged
merged 1 commit into from
Jan 23, 2022

Conversation

ulucinar
Copy link
Owner

Fixes #7
Example usage: KUBE_EDITOR="code -w" kubectl edit-status ...

With this PR, it should now be possible to specify command-line options to be passed to the resource editor. The last argument will be the path to the temp resource manifest file. For example, if KUBE_EDITOR="code -w" is set, then the editor command line will be:

code -w <file path>

…ITOR env. variable

- Fixes #7
- Example usage: KUBE_EDITOR="code -w" kubectl edit-status ...

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
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.

Support KUBE_EDITOR environment variable with command line options
1 participant