summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-09-05 04:10:54 +0200
committerNikolaus Gotsche <n@softwarefools.com>2018-09-05 04:10:54 +0200
commit4a4f372605d56f2241699da6a5bf8dae7eda2b86 (patch)
tree80025d8ee00a1ea37ff94b351ca720b7e2fc110e /main.go
parentd6dd3088da980467909a5a43fb393260c3ff7c93 (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.go11
1 files changed, 9 insertions, 2 deletions
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)