MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / MakeSetCommand

Function MakeSetCommand

pkg/ijson/ijson.go:37–43  ·  view source on GitHub ↗

instead of defining structs for commands, we just define a command shape set: type, path, value del: type, path arrayappend: type, path, value

(path Path, value any)

Source from the content-addressed store, hash-verified

35// arrayappend: type, path, value
36
37func MakeSetCommand(path Path, value any) Command {
38 return Command{
39 "type": SetCommandStr,
40 "path": path,
41 "data": value,
42 }
43}
44
45func MakeDelCommand(path Path) Command {
46 return Command{

Callers 2

TestIJsonFunction · 0.92
CompactIJsonFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIJsonFunction · 0.74