1 | import { ChildProcess } from 'child_process';
|
2 |
|
3 | declare function execSh(
|
4 | command: string | string[],
|
5 | options?: object | true,
|
6 | callback?: (
|
7 | error: Error | null,
|
8 | stdout: string,
|
9 | stderr: string
|
10 | ) => void
|
11 | ): ChildProcess;
|
12 |
|
13 | declare namespace execSh {
|
14 | function promise(
|
15 | command: string | string[],
|
16 | options?: object | true
|
17 | ): Promise<{ stdout: string, stderr: string }>;
|
18 | }
|
19 |
|
20 | export default execSh;
|