Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WriteTask

Hierarchy

Index

Properties

args

args: string[]

command

command: string

errors

errors: string[] = []

parser

parser: Parser<void>

sourceFile

sourceFile: string

Accessors

pending

  • get pending(): boolean
  • Returns boolean

promise

  • get promise(): Promise<void>
  • Returns Promise<void>

    the resolution or rejection of this task.

state

  • get state(): string
  • Returns string

stderr

  • get stderr(): string
  • Returns string

stdout

  • get stdout(): string
  • Returns string

Methods

addError

  • addError(err: string): void

onStderr

  • onStderr(buf: string | Buffer): void
  • Parameters

    • buf: string | Buffer

    Returns void

onStdout

  • onStdout(buf: string | Buffer): void
  • Parameters

    • buf: string | Buffer

    Returns void

reject

  • reject(error: Error, source?: undefined | string): void
  • This is for use by BatchProcess only, and will only be called when the process has errored after N retries

    Parameters

    • error: Error
    • Optional source: undefined | string

    Returns void

resolve

  • resolve(stdout: string, stderr: string, passed: boolean): Promise<void>
  • This is for use by BatchProcess only, and will only be called when the process is complete for this task's command

    Parameters

    • stdout: string
    • stderr: string
    • passed: boolean

    Returns Promise<void>

toString

  • toString(): string

Static for

Static renderCommand

  • renderCommand(args: string[]): string

Generated using TypeDoc