action-debian-package/node_modules/@actions/exec/lib/exec.d.ts

14 lines
610 B
TypeScript
Raw Normal View History

2020-07-25 10:21:44 +00:00
import { ExecOptions } from './interfaces';
export { ExecOptions };
2020-03-26 09:34:31 +00:00
/**
* Exec a command.
* Output will be streamed to the live console.
* Returns promise with return code
*
* @param commandLine command to execute (can include additional args). Must be correctly escaped.
* @param args optional arguments for tool. Escaping is handled by the lib.
* @param options optional exec options. See ExecOptions
* @returns Promise<number> exit code
*/
2020-07-25 10:21:44 +00:00
export declare function exec(commandLine: string, args?: string[], options?: ExecOptions): Promise<number>;