extedit

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvRestermEditor = "RESTERM_EDITOR"
	EnvVisual        = "VISUAL"
	EnvEditor        = "EDITOR"
)

Variables

View Source
var (
	ErrNoEditor = errors.New("no external editor configured")
	ErrNoArgs   = errors.New("editor command is empty")
)

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Args []string
}

func Resolve

func Resolve() (Cmd, error)

func ResolveWith

func ResolveWith(getenv func(string) string, lookPath func(string) (string, error)) (Cmd, error)

func (Cmd) Exec

func (c Cmd) Exec(path string) *exec.Cmd

Jump to

Keyboard shortcuts

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