process

package
v2.0.0-...-21d7e90 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 2 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(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) SetDir

func (p *Process) SetDir(dir string)

func (*Process) Start

func (p *Process) Start(exitCodeChannel chan int) error

Start the process

Jump to

Keyboard shortcuts

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