backend

package
Version: v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Shell string
}

func NewCmd

func NewCmd(shell string) *Cmd

func (*Cmd) BuildCommand

func (c *Cmd) BuildCommand(command string, option *CommandOption) string

func (*Cmd) RunCommand

func (c *Cmd) RunCommand(command string) *CommandResult

type CommandOption

type CommandOption struct {
	User string
	Cwd  string
}

type CommandResult

type CommandResult struct {
	Stdout     bytes.Buffer
	Stderr     bytes.Buffer
	Combined   bytes.Buffer
	ExitStatus int
	Err        error
}

func (*CommandResult) Failure

func (r *CommandResult) Failure() bool

func (*CommandResult) Success

func (r *CommandResult) Success() bool

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL