diff options
| author | Bunchhieng <Bunchhieng@gmail.com> | 2016-09-11 15:11:08 -0400 |
|---|---|---|
| committer | Bunchhieng <Bunchhieng@gmail.com> | 2016-09-11 15:11:08 -0400 |
| commit | e7eb2b8f8cee7ebdf170173617a699e2e023db9b (patch) | |
| tree | e04abd46a14f296ae3880e188ba160f1ea0d94b9 /todo.go | |
| parent | f00bb3e8ed6ea5876c54e33a28c08a19a639c6bb (diff) | |
Only open browser if .todos.json exists
Diffstat (limited to 'todo.go')
| -rw-r--r-- | todo.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -134,6 +134,7 @@ func routeInput(command string, input string) { fmt.Println(err) os.Exit(1) } + if _, err := os.Stat(pwd + "/.todos.json"); err == nil { web := todolist.NewWebapp() fmt.Println("Now serving todolist web.\nHead to http://localhost:7890 to see your todo list!") |
