summaryrefslogtreecommitdiff
path: root/interact.go
diff options
context:
space:
mode:
Diffstat (limited to 'interact.go')
-rw-r--r--interact.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/interact.go b/interact.go
index bc20f2b..d09dd14 100644
--- a/interact.go
+++ b/interact.go
@@ -513,10 +513,15 @@ func interact(fulldb bool) {
c.Println("Tasks:",len(tas))
c.Println("Projects:",len(prs))
c.Println("Customers:",len(cus))
+ c.Println("Customers:",cus)
ExportCustomers(cus,"export.customers")
ExportProjects(prs,"export.projects")
ExportTasks(tas,"export.tasks")
+
+ icus := ImportCustomer("export.customers")
+ c.Println("Imported Customers:",len(icus))
+ c.Println("Customers:",icus)
},
})
@@ -712,7 +717,7 @@ func interact(fulldb bool) {
//fmt.Println(args)
shell.Process(interArgs...)
} else {
- shell.Println("Starting interactive Shell")
+ //shell.Println("Starting interactive Shell")
stdOut()
//start shell
shell.Run()
@@ -727,7 +732,7 @@ func isInterSure(question string) bool {
shell.ShowPrompt(false)
defer shell.ShowPrompt(true)
- shell.Printf("%s (type 'y/Y/yes' to confirm) : ", question)
+ shell.Printf("%s ('y/Y/yes' Default: n) : ", question)
line := shell.ReadLine()
if line == "yes" || line == "y" || line == "Y" {
return true