system

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(options ExecOptions) error

Exec starts a process.

func Fzf

func Fzf(input []byte, originStdErr io.Writer) (string, error)

Fzf calls fzf with given input.

func WaitCopy added in v1.0.2

func WaitCopy(wg *sync.WaitGroup, dst io.Writer, src io.Reader)

WaitCopy can be used to copy from reader to writer in a go routine.

Types

type ExecError

type ExecError struct {
	Message string
}

ExecError occurs when error appened during making the Exec call.

func (ExecError) Error

func (e ExecError) Error() string

type ExecOptions

type ExecOptions struct {
	Command string
	Args    []string
	Stdout  io.Writer
	Stderr  io.Writer
	Stdin   io.Reader
}

ExecOptions is all the options for Exec.

type FzfError

type FzfError struct {
	Message string
}

FzfError occurs when error appened during calling Fzf.

func (FzfError) Error

func (e FzfError) Error() string

Jump to

Keyboard shortcuts

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