Function
Run
(ctx context.Context, appState state.State, checkResult checker.CheckResult, files files.Files)
Source from the content-addressed store, hash-verified
| 243 | } |
| 244 | |
| 245 | func 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
Tested by
no test coverage detected