github.com/jfrog/frogbot@v1.1.1-0.20231221090046-821a26f50338/action/node_modules/@actions/exec/lib/exec.d.ts (about) 1 import { ExecOptions, ExecOutput, ExecListeners } from './interfaces'; 2 export { ExecOptions, ExecOutput, ExecListeners }; 3 /** 4 * Exec a command. 5 * Output will be streamed to the live console. 6 * Returns promise with return code 7 * 8 * @param commandLine command to execute (can include additional args). Must be correctly escaped. 9 * @param args optional arguments for tool. Escaping is handled by the lib. 10 * @param options optional exec options. See ExecOptions 11 * @returns Promise<number> exit code 12 */ 13 export declare function exec(commandLine: string, args?: string[], options?: ExecOptions): Promise<number>; 14 /** 15 * Exec a command and get the output. 16 * Output will be streamed to the live console. 17 * Returns promise with the exit code and collected stdout and stderr 18 * 19 * @param commandLine command to execute (can include additional args). Must be correctly escaped. 20 * @param args optional arguments for tool. Escaping is handled by the lib. 21 * @param options optional exec options. See ExecOptions 22 * @returns Promise<ExecOutput> exit code, stdout, and stderr 23 */ 24 export declare function getExecOutput(commandLine: string, args?: string[], options?: ExecOptions): Promise<ExecOutput>;