Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var State = fmt.Sprintf(constants.CMD_BACKGROUND_JSON_OUTPUT, "_")
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
Click to show internal directories.
Click to hide internal directories.