2020-05-05 18:37:31 -04:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 15:08:49 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2020-05-05 18:37:31 -04:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2020-06-05 04:03:32 -04:00
|
|
|
import {exec as _exec, ExecOptions, ShellString} from 'shelljs';
|
2020-05-05 18:37:31 -04:00
|
|
|
|
2020-06-05 17:32:42 -04:00
|
|
|
/**
|
|
|
|
* Runs an given command as child process. By default, child process
|
|
|
|
* output will not be printed.
|
|
|
|
*/
|
|
|
|
export function exec(cmd: string, opts?: Omit<ExecOptions, 'async'>): ShellString {
|
|
|
|
return _exec(cmd, {silent: true, ...opts, async: false});
|
2020-05-05 18:37:31 -04:00
|
|
|
}
|