diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-09-05 04:10:54 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-09-05 04:10:54 +0200 |
| commit | 4a4f372605d56f2241699da6a5bf8dae7eda2b86 (patch) | |
| tree | 80025d8ee00a1ea37ff94b351ca720b7e2fc110e /main.go | |
| parent | d6dd3088da980467909a5a43fb393260c3ff7c93 (diff) | |
TOML Configuration added. texification working. outsourced some functions to my utilitys. billed tasks not yet checked
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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) |
