edit: Make environment variables composable

It also adds support for KUBE_EDITOR and GIT_EDITOR which were already
advertised in the edit usage message.
This commit is contained in:
kargakis
2015-11-11 12:29:52 +01:00
committed by Michail Kargakis
parent a7425bf070
commit 523b6ec7e3
5 changed files with 27 additions and 12 deletions

View File

@@ -41,8 +41,8 @@ Edit a resource on the server
Edit a resource from the default editor.
The edit command allows you to directly edit any API resource you can retrieve via the
command line tools. It will open the editor defined by your KUBE_EDITOR, GIT_EDITOR,
or EDITOR environment variables, or fall back to 'vi' for Linux or 'notepad' for Windows.
command line tools. It will open the editor defined by your KUBE_EDITOR, or EDITOR
environment variables, or fall back to 'vi' for Linux or 'notepad' for Windows.
You can edit multiple objects, although changes are applied one at a time. The command
accepts filenames as well as command line arguments, although the files you point to must
be previously saved versions of resources.