aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/main.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-03-29 14:28:53 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-03-29 14:28:53 -0600
commitfcce87626ceeb4e9477b915f89aa0e9e3add5860 (patch)
treed8381077fb0d78b86219491d5331589cf470042a /cmd/bolt/main.go
parentMerge pull request #97 from benbjohnson/cli (diff)
parentAdd DB.Check(). (diff)
downloaddedo-fcce87626ceeb4e9477b915f89aa0e9e3add5860.tar.gz
dedo-fcce87626ceeb4e9477b915f89aa0e9e3add5860.tar.xz
Merge pull request #98 from benbjohnson/fsck
Add DB.Check().
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 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
}