Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReadTask

Hierarchy

Index

Constructors

constructor

  • new ReadTask(args: string[]): ReadTask

Properties

command

command: string

errors

errors: string[] = []

parser

parser: Parser<Tags>

pending

pending: boolean

promise

promise: Promise<Tags>
returns

the resolution or rejection of this task.

state

state: string

Methods

addError

  • addError(err: string): void

reject

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

    Parameters

    • error: Error

    Returns void

resolve

  • resolve(data: string): void
  • This is for use by BatchProcess only, and will only be called when the process is complete for this task's command

    Parameters

    • data: string

    Returns void

toString

  • toString(): string

Static for

  • for(filename: string, optionalArgs?: string[]): ReadTask
  • Parameters

    • filename: string
    • Default value optionalArgs: string[] = []

    Returns ReadTask

Static renderCommand

  • renderCommand(args: string[]): string

Generated using TypeDoc