exec

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executable

type Executable struct {
	Cmd     string
	CmdArgs []string
}

func New

func New(rawCmd string) *Executable

func (*Executable) GetCmd

func (exe *Executable) GetCmd() (string, []string)

func (*Executable) Run

func (exe *Executable) Run(args ...string) (string, string, error)

func (*Executable) RunCombined

func (exe *Executable) RunCombined(args ...string) (string, error)

type Executor

type Executor interface {
	Run(args ...string) (string, string, error)
	RunCombined(args ...string) (string, error)
	GetCmd() (string, []string)
}

Jump to

Keyboard shortcuts

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