MCPcopy
hub / github.com/APKLab/APKLab / ProcessOptions

Interface ProcessOptions

src/utils/executor.ts:9–42  ·  view source on GitHub ↗

* Options for executeProcess function.

Source from the content-addressed store, hash-verified

7 * Options for executeProcess function.
8 */
9interface ProcessOptions {
10 /**
11 * Name of the process. Eg: `Decoding`.
12 */
13 name: string;
14 /**
15 * Report to show in progress bar.
16 */
17 report: string;
18 /**
19 * Name of the executable. Eg: `java`.
20 */
21 command: string;
22 /**
23 * CLI arguments for the command.
24 */
25 args: string[];
26 /**
27 * A file or dir which should exist if it was successful.
28 */
29 shouldExist?: string;
30 /**
31 * Callback on success.
32 */
33 onSuccess?: () => void | Promise<void>;
34 /**
35 * Execute command using shell
36 */
37 shell?: boolean;
38 /**
39 * Working directory for the process.
40 */
41 cwd?: string;
42}
43
44/**
45 * Executes a child_process and calls a callback if provided.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected