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

Method GetMetaCommand

pkg/wshrpc/wshserver/wshserver.go:147–156  ·  view source on GitHub ↗
(ctx context.Context, data wshrpc.CommandGetMetaData)

Source from the content-addressed store, hash-verified

145}
146
147func (ws *WshServer) GetMetaCommand(ctx context.Context, data wshrpc.CommandGetMetaData) (waveobj.MetaMapType, error) {
148 obj, err := wstore.DBGetORef(ctx, data.ORef)
149 if err != nil {
150 return nil, fmt.Errorf("error getting object: %w", err)
151 }
152 if obj == nil {
153 return nil, fmt.Errorf("object not found: %s", data.ORef)
154 }
155 return waveobj.GetMeta(obj), nil
156}
157
158func (ws *WshServer) UpdateTabNameCommand(ctx context.Context, tabId string, newName string) error {
159 oref := waveobj.ORef{OType: waveobj.OType_Tab, OID: tabId}

Callers

nothing calls this directly

Calls 2

DBGetORefFunction · 0.92
GetMetaFunction · 0.92

Tested by

no test coverage detected