UP | HOME

Table of Contents

Module: yalms.exec

Classes

Class: ExecCommand

Fields
  • name (string)
  • exec (string) | string[]
  • exec_fun? (fun(cb: fun(stdout: string, stderr: string, code: integer)))
  • cwd? (string)
  • desc? (string)

Class: ProcessCommandRuntime (extends ExecCommand)

Fields
  • state (ExecState)
  • output? (string)
  • exit_code? (integer)
  • last_updated? (integer)

Class: Process

Fields
  • queue (ProcessCommandRuntime[])
  • current? (ProcessCommandRuntime)
  • last? (ProcessCommandRuntime)
  • paused (boolean)
  • running (boolean)
  • _aborting (boolean)

Class: YalmsExec

Functions

new()

yalms.exec.new

Returns
  • Process

execute(cmd, cb)

yalms.exec.execute

Parameters
  • cmd (ProcessCommandRuntime)
  • cb (fun(stdout:) string, stderr: string, code: integer)

set(commands)

Process:set

Parameters
  • commands (ProcessCommandRuntime[])