Interface Exec

event

cmdStart When a new command begins to run. Passes one arg, the command being run.

event

cmdEnd When a command finishes. Passes one arg, the command being run.

event

stdout When the stdout for the child-process recieves data. This streams the stdout data. Passes one arg, the chunk of data.

event

stderr When the stderr for the child-process recieves data. This streams the stderr data. Passes one arg, the chunk of data.

event

error When a shell-command

Hierarchy

Index

Methods

Methods

public addListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public append(cmd: string)

Parameters

  • cmd: string

public emit(event: string, args?: Array<any>): boolean

Parameters

  • event: string
  • args?: Array<any> optional

Returns

boolean

public listeners(event: string): Array<Function>

Parameters

  • event: string

Returns

Array<Function>

public on(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public once(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public removeAllListeners(event?: string): EventEmitter

Parameters

  • event?: string optional

Returns

EventEmitter

public removeListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public run()

public setMaxListeners(n: number)

Parameters

  • n: number