19 lines
402 B
Go
19 lines
402 B
Go
// app.go owns process-level application bootstrap before handing control to the TUI.
|
|
package app
|
|
|
|
import (
|
|
"context"
|
|
|
|
"parasocial/internal/config"
|
|
"parasocial/internal/tui"
|
|
)
|
|
|
|
// Run loads configuration and starts the terminal UI.
|
|
func Run(ctx context.Context) error {
|
|
cfg, err := config.LoadDefault()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return tui.Run(ctx, tui.Options{Streamers: cfg.Streamers})
|
|
}
|