2020-05-05 15:37:31 -07:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 12:08:49 -07:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2020-05-05 15:37:31 -07: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 11:03:32 +03:00
|
|
|
import {exec as _exec, ExecOptions, ShellString} from 'shelljs';
|
2020-05-05 15:37:31 -07:00
|
|
|
|
2020-06-05 23:32:42 +02: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 15:37:31 -07:00
|
|
|
}
|