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
|
|
|
|
|
|
|
/* Run an exec command as silent. */
|
2020-06-05 04:03:32 -04:00
|
|
|
export function exec(cmd: string, opts?: ExecOptions&{async?: false}): ShellString {
|
|
|
|
return _exec(cmd, {silent: true, ...opts});
|
2020-05-05 18:37:31 -04:00
|
|
|
}
|