executils

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdRunner

type CmdRunner struct{}

CmdRunner implements Runner interface

func (CmdRunner) Output

func (r CmdRunner) Output(command string, args ...string) ([]byte, error)

func (CmdRunner) Run

func (r CmdRunner) Run(command string, args ...string) error

Run executes commands

func (CmdRunner) Start

func (r CmdRunner) Start(command string, args ...string) (*exec.Cmd, error)

Start starts the specified command but does not wait for it to complete.

type Runner

type Runner interface {
	Run(string, ...string) error
	Start(string, ...string) (*exec.Cmd, error)
	Output(string, ...string) ([]byte, error)
}

Runner is mainly for executing shell command

Jump to

Keyboard shortcuts

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