Back to godoc.org

Package editor

v1.8.6
Latest Go to latest
Published: Jul 26, 2019 | License: MIT | Module: github.com/justwatchcom/gopass

Index

Package Files

Variables

var (
	// Stdin is exported for tests
	Stdin io.Reader = os.Stdin
	// Stdout is exported for tests
	Stdout io.Writer = os.Stdout
	// Stderr is exported for tests
	Stderr io.Writer = os.Stderr
)

func Invoke

func Invoke(ctx context.Context, editor string, content []byte) ([]byte, error)

Invoke will start the given editor and return the content

func Path

func Path(c *cli.Context) string

Path return the name/path of the preferred editor

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier