commander

package
v0.0.0-...-58998d9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(args ...string) error

Exec executes a shell command

Types

type Runnable

type Runnable interface {
	Start() error
	Stop() error
}

Runnable provides a command than can be run and stopped

type RunnableCmd

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

RunnableCmd returns a runnable Shell command

func New

func New(args ...string) *RunnableCmd

func (*RunnableCmd) Args

func (s *RunnableCmd) Args() string

Args returns a concatenated string args

func (*RunnableCmd) Start

func (s *RunnableCmd) Start() error

Start starts the command execution

func (*RunnableCmd) Stop

func (s *RunnableCmd) Stop() error

Stop terminates the command execution

Jump to

Keyboard shortcuts

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