Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run will launch a editor to use a system defined editor such as vim to edit configs in place. It saves that content to a temp file for use as well as returning the raw bytes from the edit. It can optionally take an original bytes of content which can be used to compare if any edits were made.
Types ¶
type Editor ¶
type Editor struct { // Various arguments required to launch $EDITOR Args []string }
func (*Editor) LaunchEditor ¶
Click to show internal directories.
Click to hide internal directories.