INNER CODE UNIT · Go
Run
smtg-ai/claude-squad · app/app.go:27
func Run(ctx context.Context, program string, autoYes bool) error {
p := tea.NewProgram(
newHome(ctx, program, autoYes),
tea.WithAltScreen(),
tea.WithMouseCellMotion(), // Mouse scroll
)
_, err := p.Run()
return err
}
type state int
const (
stateDefault state = iota
// stateNew is the state when the user is creating a new instance.
stateNew
// statePrompt is the state when the user is entering a prompt.
statePrompt