From 7f2de9f17a8c6113176ecb5a3eb6ecc0772a9ec1 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 28 Mar 2014 00:07:05 -0600 Subject: Add DB.Check(). --- 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 6b28060..bc5fadb 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -61,6 +61,14 @@ func NewApp() *cli.App { Pages(path) }, }, + { + Name: "check", + Usage: "Performs a consistency check on the database", + Action: func(c *cli.Context) { + path := c.Args().Get(0) + Check(path) + }, + }, } return app } -- cgit v1.2.3