process

package
v2.0.0-alpha.65 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	Running bool
	// contains filtered or unexported fields
}

Process defines a process that can be executed

func NewProcess

func NewProcess(logger *clilogger.CLILogger, cmd string, args ...string) *Process

NewProcess creates a new process struct

func (*Process) Kill

func (p *Process) Kill() error

Kill the process

func (*Process) PID

func (p *Process) PID() int

PID returns the process PID

func (*Process) Start

func (p *Process) Start() error

Start the process

Jump to

Keyboard shortcuts

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