diff options
| author | mo khan <mo@mokhan.ca> | 2025-02-27 14:23:51 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-02-27 14:23:51 -0700 |
| commit | 08f42d37248047ed8ccead2f30e3e76167139b6b (patch) | |
| tree | 459f40a1ecd024bef250468f786872c768e161b0 | |
| parent | 705cab052d2f6fad3dc47b6bb42e891e03df2ab1 (diff) | |
chore: add target to open a web browser
| -rw-r--r-- | magefile.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/magefile.go b/magefile.go index b092d74..9c4a01b 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) } |
