diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-30 01:14:31 +0100 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-30 01:14:31 +0100 |
| commit | af56cfca0aca29efa7c507f75fabc2b090fbd4de (patch) | |
| tree | 8d66fcc4d57dac80886cc57641aee908601a84be /interact.go | |
| parent | 3fb09744cc5264fdf3740364a9c6f6f5b64707cc (diff) | |
Resume Debug
Diffstat (limited to 'interact.go')
| -rw-r--r-- | interact.go | 9 |
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 |
