diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2019-05-22 23:46:20 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2019-05-22 23:46:20 +0200 |
| commit | 06c765d4691dd65b926343e5391f627ac8a9c983 (patch) | |
| tree | 2cbe1107396eef52ad4d2d6b738dc840538f6476 /interact.go | |
| parent | 83410ee498d56f18ccab0abb9c69f112f4d9f008 (diff) | |
interactive analysis
Diffstat (limited to 'interact.go')
| -rw-r--r-- | interact.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/interact.go b/interact.go index d849eca..b8e5903 100644 --- a/interact.go +++ b/interact.go @@ -754,6 +754,40 @@ func interact(fulldb bool) { c.Println(promptcol("______________________")) }, }) + // Analysis commands + + analcmd := &ishell.Cmd{ + Name: "analysis", + Help: "monthly / yearly", + LongHelp: ` Usage: show analysis <command>`, +// Show all Projects with a small summary sorted by Customer.`, + } + analcmd.AddCmd(&ishell.Cmd{ + Name: "monthly", + Help: "Show a montly Report of all available data", + LongHelp: ` Usage: show analysis monthly + Show a monthly report of all available data.`, + Func: func(c *ishell.Context) { + MakeAnalysis() + ShowMonthlyAnalysis() + stdOut() + c.Println(promptcol("______________________")) + }, + }) + analcmd.AddCmd(&ishell.Cmd{ + Name: "yearly", + Help: "Show a yearly Report of all available data", + LongHelp: ` Usage: show analysis yearly + Show a yearly report of all available data.`, + Func: func(c *ishell.Context) { + MakeAnalysis() + ShowYearlyAnalysis() + stdOut() + c.Println(promptcol("______________________")) + }, + }) + + showcmd.AddCmd(analcmd) shell.AddCmd(showcmd) } /* |
