runner

package module
v0.0.0-...-201ef30 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

README

runner

Go package for creating external scripts and running them

Documentation

Index

Constants

View Source
const (
	ErrorRunOk = iota
	ErrorRunStdout
	ErrorRunStderr
	ErrorRunStart
)
View Source
const (
	ErrorScriptOk    = iota
	ErrorScriptChmod = iota + 10
	ErrorScriptClose
)

Variables

This section is empty.

Functions

func Close

func Close()

func Execute

func Execute(program string, args ...string) (int, string, string, error)

Types

type Script

type Script interface {
	Append(...string) error
	Run() (int, string, string, error)
	Reset() error
	GetFile() *os.File
}

func CreateScript

func CreateScript(prefix string) (Script, error)

type Temp

type Temp interface {
	SetDir(string) Temp
	SetPrefix(string) Temp
	SetSuffix(string) Temp
	Create() (Temp, error)
	GetFile() *os.File
	IsReady() bool
	Close() error
}

func CreateTempFile

func CreateTempFile() Temp

Jump to

Keyboard shortcuts

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