editor

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnset = errors.New("env is not set")

Functions

func Edit

func Edit(path string, forceTTY bool) error

Edit opens the configured editor with the given path. If forceTTY is true, "/dev/tty" will be opened for stdin and stdout.

func Get

func Get() ([]string, error)

Get checks VISUAL and EDITOR and returns the first result. If neither is set, it will return "vim"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL