Class Builder

Builder functions map

Hierarchy

  • Builder

Constructors

Methods

  • Builds a script definition for a binary.

    Type Parameters

    • Bin extends string

    Parameters

    • bin: Bin

      The binary to run

    • Optional next: NextDef

      Options to pass to the next script

    Returns BinScriptDef<Bin>

    The script definition

  • Decorates the arguments passed to the next script.

    Type Parameters

    • Args extends string[] = string[]

    Parameters

    • args: ((args) => Promiseable<Args>)

      Async callback that receives the accumulated arguments

        • (args): Promiseable<Args>
        • Parameters

          • args: string[]

          Returns Promiseable<Args>

    Returns InjectArgsDef<Args>

    The decorated arguments

  • Decorates the environment variables passed to the next script.

    Type Parameters

    Parameters

    • env: ((env) => Promiseable<Env>)

      Async callback that receives the accumulated environment variables

        • (env): Promiseable<Env>
        • Parameters

          • env: ProcessEnv

          Returns Promiseable<Env>

    Returns InjectEnvDef<Env>

    The decorated environment variables

  • Builds a script definition.

    Type Parameters

    • Script extends string

    Parameters

    • script: Script

      The script path

    • Optional next: NextDef

      Options to pass to the next script

    Returns ScriptDef<Script>

    The script definition

Generated using TypeDoc