Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Editor ¶
type Editor struct { *portercontext.Context // contains filtered or unexported fields }
Editor displays content to a user using an external text editor, like vi or notepad. The content is captured and returned.
The `EDITOR` environment variable is checked to find an editor. Failing that, use some sensible default depending on the operating system.
This is useful for editing things like configuration files, especially those that might be stored on a remote server. For example: the content could be retrieved from the remote store, edited locally, then saved back.
Click to show internal directories.
Click to hide internal directories.