aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Ammons <grant@pipelinedealsco.com>2016-09-06 20:13:02 -0400
committerGitHub <noreply@github.com>2016-09-06 20:13:02 -0400
commita98742ce47c0d3a4b21e6733666e1edec9118eab (patch)
tree8be1567f0754e35a3ab3d7f8323034f58ba1ca99
parent4c54e924259c28a1441aff4217e2d68a0cc1d1c5 (diff)
parent0d9372da1e781e54ce041b779ed159a89917e727 (diff)
Merge pull request #7 from Bunchhieng/master
Open browser when starting the web app
-rw-r--r--todo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/todo.go b/todo.go
index 5d6bc75..022ecbf 100644
--- a/todo.go
+++ b/todo.go
@@ -6,6 +6,7 @@ import (
"strings"
"github.com/fatih/color"
+ "github.com/skratchdot/open-golang/open"
"github.com/gammons/todolist/todolist"
)
@@ -129,6 +130,7 @@ func routeInput(command string, input string) {
case "web":
web := todolist.NewWebapp()
fmt.Println("Now serving todolist web.\nHead to http://localhost:7890 to see your todo list!")
+ open.Start("http://localhost:7890")
web.Run()
}
}