MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / SetApp

Method SetApp

internal/ui/components/node_details.go:50–55  ·  view source on GitHub ↗

SetApp sets the parent app reference for focus management.

(app *App)

Source from the content-addressed store, hash-verified

48
49// SetApp sets the parent app reference for focus management.
50func (nd *NodeDetails) SetApp(app *App) {
51 nd.app = app
52
53 // Set up input capture for arrow keys and VI-like navigation (hjkl)
54 nd.SetInputCapture(createNavigationInputCapture(nd.app, nd.app.nodeList, nil))
55}
56
57// Update fills the node details table for the given node.
58func (nd *NodeDetails) Update(node *api.Node, allNodes []*api.Node) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected