command

package
v0.0.0-...-27a4978 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecuter

type CommandExecuter struct {
	// contains filtered or unexported fields
}

func New

func New(errLogger, infLogger *log.Logger) *CommandExecuter

func (CommandExecuter) Execute

func (me CommandExecuter) Execute(cmd *exec.Cmd, output bool) int

type CommandFactory

type CommandFactory struct {
	Cmd  string
	Args []string
}

func Factory

func Factory(baseCmd string) *CommandFactory

func (CommandFactory) Create

func (me CommandFactory) Create(body string) *exec.Cmd

type LogWriter

type LogWriter struct {
	// contains filtered or unexported fields
}

func NewLogWriter

func NewLogWriter(l *log.Logger) *LogWriter

func (LogWriter) Write

func (lw LogWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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