MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / GetTabCommand

Method GetTabCommand

pkg/wshrpc/wshserver/wshserver.go:1463–1469  ·  view source on GitHub ↗
(ctx context.Context, tabId string)

Source from the content-addressed store, hash-verified

1461}
1462
1463func (ws *WshServer) GetTabCommand(ctx context.Context, tabId string) (*waveobj.Tab, error) {
1464 tab, err := wstore.DBGet[*waveobj.Tab](ctx, tabId)
1465 if err != nil {
1466 return nil, fmt.Errorf("error getting tab: %w", err)
1467 }
1468 return tab, nil
1469}
1470
1471func (ws *WshServer) GetAllBadgesCommand(ctx context.Context) ([]baseds.BadgeEvent, error) {
1472 return wcore.GetAllBadges(), nil

Callers

nothing calls this directly

Calls 1

DBGetFunction · 0.92

Tested by

no test coverage detected