MCPcopy Index your code
hub / github.com/Effect-TS/effect / toJSON

Function toJSON

packages/platform/src/internal/command.ts:115–127  ·  view source on GitHub ↗
(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
130const 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…