MCPcopy Create free account
hub / github.com/Effect-TS/effect / toJSON

Function toJSON

packages/platform/src/internal/command.ts:130–143  ·  view source on GitHub ↗
(this: Command.StandardCommand)

Source from the content-addressed store, hash-verified

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
146const makeStandard = (options: Omit<Command.StandardCommand, keyof Command.Command.Proto>): Command.StandardCommand =>

Callers

nothing calls this directly

Calls 1

toJSONMethod · 0.65

Tested by

no test coverage detected