From b9899d09ab6c032b54fe4a09e9389dff28d8a7f8 Mon Sep 17 00:00:00 2001 From: Martin Kobetic Date: Fri, 9 May 2014 20:50:55 +0000 Subject: first part --- cmd/bolt/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cmd/bolt/main.go') 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 @@ -91,6 +91,14 @@ func NewApp() *cli.App { Check(path) }, }, + { + 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", -- cgit v1.2.3