summaryrefslogtreecommitdiff
path: root/interact.go
diff options
context:
space:
mode:
Diffstat (limited to 'interact.go')
-rw-r--r--interact.go34
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)
}
/*