ozibuild
    Preparing search index...

    Function buildCmd

    • Runs a "build" command, i.e. a command that has an output.

      Parameters

      • ctx: SourceDirContext

        Context, i.e. source directory. in which build commands executes.

      • params: {
            args: string[];
            bin: string;
            cwd?: string;
            env?: any;
            label?: string;
            logfile?: string;
            outdir?: string;
            outfile?: string;
            stdoutfile?: boolean;
        }
        • args: string[]

          Arguments to pass to binary.

        • bin: string

          Binary to execute

        • Optionalcwd?: string

          Working directory when executing the command.

        • Optionalenv?: any
        • Optionallabel?: string

          Indicates that the build generates a string as output.

        • Optionallogfile?: string
        • Optionaloutdir?: string

          Indicates that the build command generates multiple files in an output directory.

        • Optionaloutfile?: string

          Indicates that the build command generates an output file. In this case a successful run of the command must produce the ouput.

        • Optionalstdoutfile?: boolean

          Indicate to produce outfile from stdout.

      Returns Promise<string>

      Resolved output file (params.outfile), when specified. Falls back to params.outdir, params.label or binary name.