TTaskSetupOptions: { abort: ((text: string) => void); ascii: Ascii; ask: ((text: string, options?: TAskOptions) => Promise<string | string[]>); error: ((text: string) => void); exec: ((command: string, options?: TExecOptions) => Promise<TExecReturnValue>); fetchJson: (<T>(url: string, options?: RequestInit) => Promise<TFetchReturnValue<T>>); fetchText: ((url: string, options?: RequestInit) => Promise<TFetchReturnValue<string>>); logger: Logger; shell: TSubShell; subtask: ((title: string) => void); success: ((text: string) => void); theme: Theme }

Type declaration

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

        • text: string

        Returns void

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

        Returns Promise<string | string[]>

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

        • text: string

        Returns void

  • exec: ((command: string, options?: TExecOptions) => Promise<TExecReturnValue>)
  • fetchJson: (<T>(url: string, options?: RequestInit) => Promise<TFetchReturnValue<T>>)
      • <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>>)
  • logger: Logger
  • shell: TSubShell
  • subtask: ((title: string) => void)
      • (title: string): void
      • Parameters

        • title: string

        Returns void

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

        • text: string

        Returns void

  • theme: Theme