clyops Node API
    Preparing search index...

    Function runScriptFunction

    • Run a function's tool. Its stdin is the function's stdin file, if any; stdout goes to its stdout file, else is collected (a tool may print its result), and stderr is collected. Secret options are *** in command.

      Parameters

      • fn: ResolvedFunction
      • opts: CommandOptions & {
            cwd?: string;
            env?: ProcessEnv;
            onStderr?: (chunk: string) => void;
            signal?: AbortSignal;
            timeoutMs?: number;
        }

      Returns Promise<FunctionRun>