Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProcessTaskRunner

Task runner that runs a task as a process or a command inside a shell.

Hierarchy

  • ProcessTaskRunner

Implements

Index

Constructors

constructor

Properties

Protected Readonly logger

logger: ILogger

Protected Readonly rawProcessFactory

rawProcessFactory: RawProcessFactory

Protected Readonly taskFactory

taskFactory: TaskFactory

Protected Readonly taskTerminalProcessFactory

taskTerminalProcessFactory: TaskTerminalProcessFactory

Methods

Protected argumentNeedsQuotes

  • argumentNeedsQuotes(value: string, shellQuotingOptions: ShellQuotingFunctions): boolean

Protected asFsPath

  • asFsPath(uriOrPath: string): string

Protected executableFileExists

  • executableFileExists(filePath: string): Promise<boolean>
  • deprecated

    Remove ProcessTaskRunner.findCommand, introduce process "started" event Checks for the existence of a file, at the provided path, and make sure that it's readable and executable.

    Parameters

    • filePath: string

    Returns Promise<boolean>

Private getCommand

  • getCommand(processType: ProcessType, terminalProcessOptions: TerminalProcessOptions): undefined | string

Private getResolvedCommand

Private getSystemSpecificCommand

  • getSystemSpecificCommand(taskConfig: TaskConfiguration, system: undefined | "windows" | "linux" | "osx"): { args: undefined | (string | ShellQuotedString)[]; command: undefined | string; options: CommandOptions }

run