Function
toJSON
(this: Command.StandardCommand)
Source from the content-addressed store, hash-verified
| 113 | ...Proto, |
| 114 | _tag: "StandardCommand", |
| 115 | toJSON(this: Command.StandardCommand) { |
| 116 | return { |
| 117 | _id: "@effect/platform/Command", |
| 118 | _tag: this._tag, |
| 119 | command: this.command, |
| 120 | args: this.args, |
| 121 | env: Object.fromEntries(this.env), |
| 122 | cwd: this.cwd.toJSON(), |
| 123 | shell: this.shell, |
| 124 | gid: this.gid.toJSON(), |
| 125 | uid: this.uid.toJSON() |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | const makeStandard = (options: Omit<Command.StandardCommand, keyof Command.Command.Proto>): Command.StandardCommand => |
Callers
nothing calls this directly
Tested by
no test coverage detected