MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetWindow

Function GetWindow

pkg/wcore/window.go:72–79  ·  view source on GitHub ↗
(ctx context.Context, windowId string)

Source from the content-addressed store, hash-verified

70}
71
72func GetWindow(ctx context.Context, windowId string) (*waveobj.Window, error) {
73 window, err := wstore.DBMustGet[*waveobj.Window](ctx, windowId)
74 if err != nil {
75 log.Printf("error getting window %q: %v\n", windowId, err)
76 return nil, err
77 }
78 return window, nil
79}
80
81func CreateWindow(ctx context.Context, winSize *waveobj.WinSize, workspaceId string) (*waveobj.Window, error) {
82 log.Printf("CreateWindow %v %v\n", winSize, workspaceId)

Callers 5

BlocksListCommandMethod · 0.92
SwitchWorkspaceFunction · 0.85
CreateWindowFunction · 0.85
CloseWindowFunction · 0.85
CheckAndFixWindowFunction · 0.85

Calls 1

DBMustGetFunction · 0.92

Tested by

no test coverage detected