MCPcopy
hub / github.com/vxcontrol/pentagi / Run

Function Run

backend/cmd/installer/wizard/app.go:245–259  ·  view source on GitHub ↗
(ctx context.Context, appState state.State, checkResult checker.CheckResult, files files.Files)

Source from the content-addressed store, hash-verified

243}
244
245func Run(ctx context.Context, appState state.State, checkResult checker.CheckResult, files files.Files) error {
246 app := NewApp(appState, checkResult, files)
247
248 p := tea.NewProgram(
249 app,
250 tea.WithAltScreen(),
251 tea.WithMouseCellMotion(),
252 )
253
254 if _, err := p.Run(); err != nil { // ignore the return model, use app.currentModel instead
255 return fmt.Errorf("failed to run installer wizard: %w", err)
256 }
257
258 return nil
259}

Callers

nothing calls this directly

Calls 2

NewAppFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected