editor

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package editor resolves which text editor to use for interactive edits (config files, release notes, etc.), shared by the commands that need it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve() (string, bool)

Resolve returns the user's preferred editor: $EDITOR, then $VISUAL, then the first of a list of common editors found on PATH. It returns ("", false) when none could be determined.

Types

This section is empty.

Jump to

Keyboard shortcuts

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