state

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetLastCommand

func GetLastCommand() string

func SetLastCommand

func SetLastCommand(cmdId string)

Types

type BackgroundCommand

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

func GetInstance

func GetInstance() *BackgroundCommand

Keeping a list of pointers to the commands started in background Needed for future process kill

{
	"muCmdId" : (exec.Cmd) pointer
}

func (*BackgroundCommand) AddCmdToCommandList

func (bgCmd *BackgroundCommand) AddCmdToCommandList(cmdId string, cmd *exec.Cmd)

func (*BackgroundCommand) GetBackgroundCommandList

func (bgCmd *BackgroundCommand) GetBackgroundCommandList() map[string]*exec.Cmd

Jump to

Keyboard shortcuts

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