editor

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoCmd = errors.New("no command to run")

ErrNoCmd is an error returned when no command is provided to run.

Functions

This section is empty.

Types

type Editor

type Editor interface {
	Run(msg string) (string, error)
}

Editor is an interface that allows message editing in an arbitrary text editor.

func NewCmdEditor

func NewCmdEditor(fs afero.Fs, cmd string) Editor

NewCmdEditor creates a new instance of cmdEditor which runs an editor specified in cmd.

Jump to

Keyboard shortcuts

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