Hierarchy

  • Task

Constructors

Properties

abort: ((text: string) => void)

Type declaration

    • (text: string): void
    • Throws

      !always FalkorError: TaskHostErrorCodes.SUBTASK_ABORT

      Parameters

      • text: string

      Returns void

ascii: Ascii
ask: ((text: string, options?: TAskOptions) => Promise<string | string[]>)

Type declaration

    • (text: string, options?: TAskOptions): Promise<string | string[]>
    • Parameters

      Returns Promise<string | string[]>

error: ((text: string) => void)

Type declaration

    • (text: string): void
    • Throws

      !always FalkorError: TaskHostErrorCodes.SUBTASK_ERROR

      Parameters

      • text: string

      Returns void

exec: ((command: string, options?: TExecOptions) => Promise<TExecReturnValue>)

Type declaration

fetchJson: (<T>(url: string, options?: RequestInit) => Promise<TFetchReturnValue<T>>)

Type declaration

    • <T>(url: string, options?: RequestInit): Promise<TFetchReturnValue<T>>
    • Type Parameters

      Type Parameters

      • T = any

      Parameters

      • url: string
      • Optional options: RequestInit

      Returns Promise<TFetchReturnValue<T>>

fetchText: ((url: string, options?: RequestInit) => Promise<TFetchReturnValue<string>>)

Type declaration

logger: Logger
shell: TSubShell
subtask: ((title: string) => void)

Type declaration

    • (title: string): void
    • Parameters

      • title: string

      Returns void

success: ((text: string) => void)

Type declaration

    • (text: string): void
    • Parameters

      • text: string

      Returns void

taskId: string
theme: Theme

Accessors

  • get [toStringTag](): string
  • Returns string

  • get id(): string
  • Returns string

Methods

  • Parameters

    • isAbort: boolean

    Returns void

  • Parameters

    • Optional argv: { [key: string]: any }
      • [key: string]: any
    • Optional config: any

    Returns Promise<void>