From 08f42d37248047ed8ccead2f30e3e76167139b6b Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 27 Feb 2025 14:23:51 -0700 Subject: chore: add target to open a web browser --- magefile.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/magefile.go b/magefile.go index b092d74c..9c4a01bc 100644 --- a/magefile.go +++ b/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) } -- cgit v1.2.3