MCPcopy Create free account
hub / github.com/SamNet-dev/snix / Run

Function Run

tui/app.go:75–80  ·  view source on GitHub ↗

Run starts the Bubble Tea program. Blocking; returns when the user quits.

(opts Options)

Source from the content-addressed store, hash-verified

73
74// Run starts the Bubble Tea program. Blocking; returns when the user quits.
75func Run(opts Options) error {
76 app := newApp(opts)
77 p := tea.NewProgram(app, tea.WithAltScreen(), tea.WithMouseCellMotion())
78 _, err := p.Run()
79 return err
80}
81
82func newApp(opts Options) App {
83 cfg, cfgErr := config.Load(opts.ConfigPath)

Callers 1

newTUICmdFunction · 0.92

Calls 2

newAppFunction · 0.85
RunMethod · 0.80

Tested by

no test coverage detected