(ctx context.Context, tabId string)
| 1461 | } |
| 1462 | |
| 1463 | func (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 | |
| 1471 | func (ws *WshServer) GetAllBadgesCommand(ctx context.Context) ([]baseds.BadgeEvent, error) { |
| 1472 | return wcore.GetAllBadges(), nil |