exec

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Overview

Package exec provides code that can execute a script

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CliParse

func CliParse(cmdStr string) (cmd string, args []string)

CliParse parses the CLI command string into command and arguments

func CliRun

func CliRun(uid, gid uint32, envs []string, cmd string, args ...string) (io.Reader, error)

CliRun executes specified command using local CLI interface

Types

type Executor

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

Executor represents a type that can execute a script

func New

func New(src *script.Script) *Executor

New returns an *Executor

func (*Executor) Execute

func (e *Executor) Execute() error

Execute executes the configured script

Jump to

Keyboard shortcuts

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