MCPcopy
hub / github.com/wavetermdev/waveterm / ApplyCommands

Function ApplyCommands

pkg/ijson/ijson.go:617–626  ·  view source on GitHub ↗
(data any, commands []Command, budget int)

Source from the content-addressed store, hash-verified

615}
616
617func ApplyCommands(data any, commands []Command, budget int) (any, error) {
618 for _, command := range commands {
619 var err error
620 data, err = ApplyCommand(data, command, budget)
621 if err != nil {
622 return nil, err
623 }
624 }
625 return data, nil
626}
627
628func CompactIJson(fullData []byte, budget int) ([]byte, error) {
629 var newData any

Callers 1

TestIJsonFunction · 0.92

Calls 1

ApplyCommandFunction · 0.85

Tested by 1

TestIJsonFunction · 0.74