command

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func New

func New() *Command

func (*Command) Add

func (cmd *Command) Add(value ...string)

func (*Command) Display

func (cmd *Command) Display(help ...bool) string

func (*Command) InjectCommand added in v1.2.6

func (cmd *Command) InjectCommand(position int, command string, before bool, noerr ...bool)

func (*Command) Kill added in v1.0.6

func (cmd *Command) Kill() error

func (*Command) PID added in v1.0.6

func (cmd *Command) PID() int

func (*Command) Run

func (cmd *Command) Run(cwd ...string)

func (*Command) String

func (cmd *Command) String(includeApp ...bool) string

type InjectedCommand added in v1.2.6

type InjectedCommand struct {
	Position int
	Command  string
	Noerror  bool
	Before   bool
}

Jump to

Keyboard shortcuts

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