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

Method SetMetaCommand

pkg/wshrpc/wshserver/wshserver.go:178–187  ·  view source on GitHub ↗
(ctx context.Context, data wshrpc.CommandSetMetaData)

Source from the content-addressed store, hash-verified

176}
177
178func (ws *WshServer) SetMetaCommand(ctx context.Context, data wshrpc.CommandSetMetaData) error {
179 log.Printf("SetMetaCommand: %s | %v\n", data.ORef, data.Meta)
180 oref := data.ORef
181 err := wstore.UpdateObjectMeta(ctx, oref, data.Meta, false)
182 if err != nil {
183 return fmt.Errorf("error updating object meta: %w", err)
184 }
185 wcore.SendWaveObjUpdate(oref)
186 return nil
187}
188
189func (ws *WshServer) GetRTInfoCommand(ctx context.Context, data wshrpc.CommandGetRTInfoData) (*waveobj.ObjRTInfo, error) {
190 return wstore.GetRTInfo(data.ORef), nil

Callers

nothing calls this directly

Calls 2

UpdateObjectMetaFunction · 0.92
SendWaveObjUpdateFunction · 0.92

Tested by

no test coverage detected