summaryrefslogtreecommitdiff
path: root/interact.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-10-26 13:25:45 +0200
committerNikolaus Gotsche <n@softwarefools.com>2018-10-26 13:25:45 +0200
commitd06db7af6014e8498672899218a05adf36ab1aa3 (patch)
tree1e960093c848ad166beb4a5125655e53b04066de /interact.go
parentab0058448abc0f51d0165c0278bdd4878a3f4d13 (diff)
Final Framing and Multichoice beatification
Diffstat (limited to 'interact.go')
-rw-r--r--interact.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/interact.go b/interact.go
index f61b398..06892ed 100644
--- a/interact.go
+++ b/interact.go
@@ -213,7 +213,7 @@ func interact(fulldb bool) {
}
} else {
tids := getTaskIds()
- selids, lids := getTaskList(tids, false)
+ selids, lids := GetTaskList(tids, false,false)
choice := c.MultiChoice(lids, "Select a Task to Edit")
if choice > -1 {
deleteTask(selids[choice])
@@ -275,7 +275,7 @@ func interact(fulldb bool) {
}
} else {
tids := getTaskIds()
- selids, lids := getTaskList(tids, false)
+ selids, lids := GetTaskList(tids, false,false)
choice := c.MultiChoice(lids, "Select a Task to Edit")
//c.Println(tids)
//c.Println(selids)
@@ -544,7 +544,7 @@ func interact(fulldb bool) {
bill can be deleted and a new selection made.`,
Func: func(c *ishell.Context) {
nix := []int{0}
- ids, str := getTaskList(nix, true)
+ ids, str := GetTaskList(nix, true,true)
choices := c.Checklist(str,
"Which Tasks should be charged in the new bill ?",
nil)
@@ -624,7 +624,7 @@ func interact(fulldb bool) {
resttasks := GetSelectedTasks(restids)
rcount, rhours, _ := AnalyzeTasks(resttasks)
- rids, rstr := getTaskList(restids, false)
+ rids, rstr := GetTaskList(restids, false,false)
qu := "Select Tasks to Group as Billitem"
restinfo = fmt.Sprintf("%v Tasks Left, Total %.2f(h)\n%s", rcount, rhours, qu)
pre := fmt.Sprintf("%s%s%s", fullbillinfo, sep, restinfo)