generalised logs

This commit is contained in:
Jesse Duffield 2018-06-05 19:30:55 +10:00
parent 68a23f14e8
commit 0d2076c57c
3 changed files with 30 additions and 9 deletions

14
main.go
View file

@ -1,15 +1,23 @@
package main
import (
"flag"
"fmt"
"time"
)
// StartTime : The starting time of the app
var StartTime time.Time
var (
startTime time.Time
debugging bool
)
func main() {
debuggingPointer := flag.Bool("debug", false, "a boolean")
flag.Parse()
debugging = *debuggingPointer
fmt.Println(homeDirectory() + "/go/src/github.com/jesseduffield/lazygit/development.log")
devLog("\n\n\n\n\n\n\n\n\n\n")
StartTime = time.Now()
startTime = time.Now()
verifyInGitRepo()
run()
}