| 128 | ...Proto, |
| 129 | _tag: "StandardCommand", |
| 130 | toJSON(this: Command.StandardCommand) { |
| 131 | return { |
| 132 | _id: "@effect/platform/Command", |
| 133 | _tag: this._tag, |
| 134 | command: this.command, |
| 135 | args: this.args, |
| 136 | env: Object.fromEntries(this.env), |
| 137 | extendEnv: this.extendEnv, |
| 138 | cwd: this.cwd.toJSON(), |
| 139 | shell: this.shell, |
| 140 | gid: this.gid.toJSON(), |
| 141 | uid: this.uid.toJSON() |
| 142 | } |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | const makeStandard = (options: Omit<Command.StandardCommand, keyof Command.Command.Proto>): Command.StandardCommand => |