summaryrefslogtreecommitdiff
path: root/statistics.go
diff options
context:
space:
mode:
Diffstat (limited to 'statistics.go')
-rw-r--r--statistics.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/statistics.go b/statistics.go
index 6c7ed88..0cd7d44 100644
--- a/statistics.go
+++ b/statistics.go
@@ -5,6 +5,7 @@ import (
"path/filepath"
"syscall"
"time"
+ "fmt"
)
type statistics struct {
@@ -73,3 +74,15 @@ func NewStatistics(formula *FormulaInfo, cask *CaskInfo, pkgName string) (*stati
return &statObject
}
+
+func (s *statistics) Print() {
+ if s == nil {
+ fmt.Println("Package not found.")
+ return
+ }
+
+ PrintHeader(s)
+ PrintUserInteractionSummary(s)
+ PrintMetadata(s)
+ fmt.Println()
+}