Merge branch 'master' into feature/auto-updates

This commit is contained in:
Jesse Duffield 2018-08-27 18:55:56 +10:00
commit 43f612feb1
13 changed files with 427 additions and 116 deletions

View file

@ -17,6 +17,7 @@ var (
date string
buildSource = "unknown"
configFlag = flag.Bool("config", false, "Print the current default config")
debuggingFlag = flag.Bool("debug", false, "a boolean")
versionFlag = flag.Bool("v", false, "Print the current version")
)
@ -32,6 +33,11 @@ func main() {
fmt.Printf("commit=%s, build date=%s, build source=%s, version=%s, os=%s, arch=%s\n", commit, date, buildSource, version, runtime.GOOS, runtime.GOARCH)
os.Exit(0)
}
if *configFlag {
fmt.Printf("%s\n", config.GetDefaultConfig())
os.Exit(0)
}
appConfig, err := config.NewAppConfig("lazygit", version, commit, date, buildSource, debuggingFlag)
if err != nil {
panic(err)