exec.d.ts 581 B

123456789101112
  1. import * as im from './interfaces';
  2. /**
  3. * Exec a command.
  4. * Output will be streamed to the live console.
  5. * Returns promise with return code
  6. *
  7. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
  8. * @param args optional arguments for tool. Escaping is handled by the lib.
  9. * @param options optional exec options. See ExecOptions
  10. * @returns Promise<number> exit code
  11. */
  12. export declare function exec(commandLine: string, args?: string[], options?: im.ExecOptions): Promise<number>;