Workstation API - v0.6.2
    Preparing search index...

    Variable shellConst

    shell: {
        condition: {
            and(...conditions: readonly ShellCondition[]): ShellCondition;
            commandExists(command: string): ShellCondition;
            directory(path: ShellValue): ShellCondition;
            empty(value: ShellValue): ShellCondition;
            executable(path: ShellValue): ShellCondition;
            file(path: ShellValue): ShellCondition;
            nonEmpty(value: ShellValue): ShellCondition;
            not(condition: ShellCondition): ShellCondition;
            or(...conditions: readonly ShellCondition[]): ShellCondition;
        };
        alias(name: string, command: string): ShellStatement;
        assign(name: string, value: ShellValue): ShellStatement;
        capture(command: ShellCommand): ShellExpression;
        command(
            command: string,
            args?: readonly ShellValue[],
            options?: Pick<ShellCommand, "stderr">,
        ): ShellCommand;
        concat(...values: readonly ShellValue[]): ShellExpression;
        eval(command: ShellCommand): ShellStatement;
        export(name: string, value: ShellValue): ShellStatement;
        home(path?: string): ShellExpression;
        keepPathFirst(...values: readonly ShellValue[]): ShellStatement;
        prependPath(...values: readonly ShellValue[]): ShellStatement;
        raw(code: string): ShellStatement;
        source(path: ShellValue, options?: { ifExists?: boolean }): ShellStatement;
        unset(...names: readonly string[]): ShellStatement;
        variable(name: string): ShellExpression;
        when(
            condition: ShellCondition,
            statements: readonly ShellStatement[],
        ): ShellStatement;
    } = ...

    Build shell statements without hand-written quoting. Helpers describe code; they do not execute commands.

    Type Declaration