From 4a4f372605d56f2241699da6a5bf8dae7eda2b86 Mon Sep 17 00:00:00 2001 From: Nikolaus Gotsche Date: Wed, 5 Sep 2018 04:10:54 +0200 Subject: TOML Configuration added. texification working. outsourced some functions to my utilitys. billed tasks not yet checked --- main.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 68a2397..695d0de 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ var starttime,stoptime string var projectid, edittaskid, editprojectid, editcustomerid int var deltask int var addcustomer bool -var newproject, newtask, stoptask, allproj, runinter, test bool +var newproject, newtask, stoptask, allproj, runinter, test, newconfig bool //var red, green, yellow, cyan color //var boldRed, boldGreen color @@ -37,6 +37,10 @@ func init() { "Test Some Functions") + flag.BoolVar(&newconfig, + "config", + false, + "View and Edit Configuration") flag.BoolVar(&addcustomer, "addcustomer", false, @@ -111,6 +115,7 @@ func stdOut() { func main() { fmt.Println("Laboravi Started") + initConf() dbname := "./.mytimes.db" if len(flag.Args())>0 { @@ -154,7 +159,9 @@ func main() { if runinter { interact() } - + if newconfig { + editConf() + } if newproject { newProject() os.Exit(0) -- cgit v1.2.3