MCPcopy
hub / github.com/hatchet-dev/hatchet / isInPrimaryView

Method isInPrimaryView

cmd/hatchet-cli/cli/tui.go:587–591  ·  view source on GitHub ↗

isInPrimaryView checks if the current view is a primary view (not a detail view)

()

Source from the content-addressed store, hash-verified

585
586// isInPrimaryView checks if the current view is a primary view (not a detail view)
587func (m tuiModel) isInPrimaryView() bool {
588 // Check if we're in a primary view by checking if viewStack is empty
589 // Detail views push the previous view onto the stack
590 return len(m.viewStack) == 0
591}
592
593// renderViewSelector renders the view selector modal
594func (m tuiModel) renderViewSelector() string {

Callers 1

UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected