ozibuild
    Preparing search index...

    Function cachedCmd

    • Runs a command that produces an output exactly once, unless the command or dependencies change.

      Command is run when any of the following conditions is met:

      • out doesn't exist.
      • Any deps have changed.
      • bin or args have changed.

      Parameters

      • ctx: SourceDirContext
      • params: {
            args: string[];
            bin: string;
            cwd: string;
            deps: string[];
            outfile: string;
            stdoutfile: boolean;
        }
        • args: string[]

          Verbatim command args. out and deps are independent from args, args need to be fully specified, i.e. duplicate out and deps as needed.

        • bin: string

          Command binary.

        • cwd: string

          Working directory for command.

        • deps: string[]

          Direct dependencies of output. A file dependency is checksumed, otherwise depdency is considered literally.

        • outfile: string

          Output to produce, representing a file. Absolute or relative to cwd.

        • stdoutfile: boolean

      Returns Promise<string>

      a promise containing the output, after the output was generated.