kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/util/editor/editor.go

const defaultEditor

const defaultShell

const windowsEditor

const windowsShell

type Editor

// NewDefaultEditor creates a struct Editor that uses the OS environment to
// locate the editor program, looking at EDITOR environment variable to find
// the proper command line. If the provided editor has no spaces, or no quotes,
// it is treated as a bare command to be loaded. Otherwise, the string will
// be passed to the user's shell for execution.
func NewDefaultEditor(envs []string) Editor {}

func defaultEnvShell() []string {}

func defaultEnvEditor(envs []string) ([]string, bool) {}

// LaunchTempFile reads the provided stream into a temporary file in the given directory
// and file prefix, and then invokes Launch with the path of that file. It will return
// the contents of the file after launch, any errors that occur, and the path of the
// temporary file so the caller can clean it up as needed.
func (e Editor) LaunchTempFile(prefix, suffix string, r io.Reader) ([]byte, string, error) {}

func platformize(linux, windows string) string {}