aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/main.go
diff options
context:
space:
mode:
authorMartin Kobetic <mkobetic@gmail.com>2014-05-09 20:50:55 +0000
committerMartin Kobetic <mkobetic@gmail.com>2014-05-09 20:50:55 +0000
commitb9899d09ab6c032b54fe4a09e9389dff28d8a7f8 (patch)
tree30a0bdbcd865fd26bbb268afab23f3f68d3f692a /cmd/bolt/main.go
parentMerge pull request #160 from benbjohnson/fix-deletion (diff)
downloaddedo-b9899d09ab6c032b54fe4a09e9389dff28d8a7f8.tar.gz
dedo-b9899d09ab6c032b54fe4a09e9389dff28d8a7f8.tar.xz
first part
Diffstat (limited to 'cmd/bolt/main.go')
-rw-r--r--cmd/bolt/main.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go
index 3397042..659f1c3 100644
--- a/cmd/bolt/main.go
+++ b/cmd/bolt/main.go
@@ -92,6 +92,14 @@ func NewApp() *cli.App {
},
},
{
+ Name: "stats",
+ Usage: "Retrieve statistics for a bucket (aggregated recursively)",
+ Action: func(c *cli.Context) {
+ path, name := c.Args().Get(0), c.Args().Get(1)
+ Stats(path, name)
+ },
+ },
+ {
Name: "bench",
Usage: "Performs a synthetic benchmark",
Flags: []cli.Flag{