cli: add --page flag to start on a specific page

This commit is contained in:
totmin
2026-06-22 14:44:16 +07:00
parent a9c8a5bb8b
commit e590c9fbc5
2 changed files with 32 additions and 9 deletions
+2
View File
@@ -22,6 +22,7 @@ func main() {
fs := flag.NewFlagSet("streamdeck-lets-go", flag.ExitOnError)
configPath := fs.String("config", "", "path to config.json (default: ~/.config/streamdeck-lets-go/config.json)")
httpAddr := fs.String("addr", ":9090", "web UI listen address")
startPage := fs.String("page", "", "page to activate on startup (default: config's default_page)")
noDeck := fs.Bool("no-deck", false, "run without Stream Deck hardware (config editing only)")
verbose := fs.Bool("v", false, "verbose output")
@@ -71,6 +72,7 @@ func main() {
HTTPAddr: *httpAddr,
HTTPEnabled: httpEnabled,
NoDeck: *noDeck,
StartPage: *startPage,
}); err != nil {
slog.Error("run", "error", err)
os.Exit(1)