We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd95693 commit adb3d44Copy full SHA for adb3d44
apps/coordinator/src/exec.ts
@@ -4,26 +4,16 @@ import { homedir } from "os";
4
import { type Result, x } from "tinyexec";
5
6
class TinyResult {
7
- constructor(private result: Result) {}
8
-
9
- get pid() {
10
- return this.result.pid;
11
- }
12
13
- get process() {
14
- return this.result.process;
15
16
17
- get exitCode() {
18
- return this.result.exitCode;
19
20
21
- get aborted() {
22
- return this.result.aborted;
23
24
25
- get killed() {
26
- return this.result.killed;
+ pid?: number;
+ exitCode?: number;
+ aborted: boolean;
+ killed: boolean;
+
+ constructor(result: Result) {
+ this.pid = result.pid;
+ this.exitCode = result.exitCode;
+ this.aborted = result.aborted;
+ this.killed = result.killed;
27
}
28
29
0 commit comments