feat: bootstrap cli entrypoint with bubble tea and toml config

This commit is contained in:
2026-04-28 20:49:07 +02:00
parent 914b3b9eff
commit f738833aa8
10 changed files with 338 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package main
import (
"context"
"errors"
"fmt"
"os"
"os/signal"
"syscall"
"parasocial/internal/app"
)
func main() {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
if err := app.Run(ctx); err != nil {
if errors.Is(err, context.Canceled) {
return
}
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
}