Theia API Documentation v1.65.0
    Preparing search index...
    interface CommandOptions {
        cwd?: string;
        env?: { [key: string]: undefined | string };
        shell?: { args?: string[]; executable: string };
    }
    Index

    Properties

    Properties

    cwd?: string

    The 'current working directory' the task will run in. Can be a uri-as-string or plain string path. If the cwd is meant to be somewhere under the workspace, one can use the variable ${workspaceFolder}, which will be replaced by its path, at runtime. If not specified, defaults to the workspace root. ex: cwd: '${workspaceFolder}/foo'

    env?: { [key: string]: undefined | string }

    The environment of the executed program or shell. If omitted the parent process' environment is used.

    shell?: { args?: string[]; executable: string }

    Configuration of the shell when task type is shell

    Type Declaration

    • Optionalargs?: string[]

      The arguments to be passed to the shell executable to run in command mode (e.g ['-c'] for bash or ['/S', '/C'] for cmd.exe).

    • executable: string

      The shell to use.