summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-08-29 04:27:16 +0200
committerNikolaus Gotsche <n@softwarefools.com>2018-08-29 04:27:16 +0200
commitad7b23c17dbe05e7e6a4ad3ea023f692f832a938 (patch)
tree0832c6fa8e8be7a66a59e371222aab19c3a2bf5d /main.go
parented43a6d9c450483914281e5fc3b6877116fc6ad0 (diff)
LaTeX templating and bills begin
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.go b/main.go
index 32861c0..6cc9185 100644
--- a/main.go
+++ b/main.go
@@ -14,7 +14,7 @@ import (
//var svar string
var starttime,stoptime string
-var projectid, edittaskid, editprojectid int
+var projectid, edittaskid, editprojectid, editcustomerid int
var deltask int
var addcustomer bool
var newproject, newtask, stoptask, allproj, runinter, test bool
@@ -65,6 +65,10 @@ func init() {
"editproject",
0,
"Specify which project to edit")
+ flag.IntVar(&editcustomerid,
+ "editcustomer",
+ 0,
+ "Specify which customer to edit")
flag.IntVar(&projectid,
"project",
0,
@@ -183,6 +187,8 @@ func main() {
editTask(edittaskid)
} else if (editprojectid>0) {
editProject(editprojectid)
+ } else if (editcustomerid>0) {
+ editCustomer(editcustomerid)
} else if (projectid>0) {
setProject(projectid)
stdOut()