Commit 08f42d3

mo khan <mo@mokhan.ca>
2025-02-27 21:23:51
chore: add target to open a web browser
1 parent 705cab0
Changed files (1)
magefile.go
@@ -24,7 +24,12 @@ func RunSp() error {
 	return sh.RunV("ruby", "./bin/sp")
 }
 
+// Open a web browser to the login page
+func Browser() error {
+	return sh.RunV("xdg-open", "http://localhost:8283/sessions/new")
+}
+
 // Run All the servers
 func Run(ctx context.Context) {
-	mg.CtxDeps(ctx, RunIdp, RunSp)
+	mg.CtxDeps(ctx, RunIdp, RunSp, Browser)
 }