diff --git a/cmd/bbolt/command_buckets.go b/cmd/bbolt/command_buckets.go index c52d9c402..92d5b0fb2 100644 --- a/cmd/bbolt/command_buckets.go +++ b/cmd/bbolt/command_buckets.go @@ -14,14 +14,13 @@ func newBucketsCommand() *cobra.Command { Short: "print a list of buckets", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { - return bucketsFunc(args[0]) + return bucketsFunc(cmd, args[0]) }, } return bucketsCmd } -// printBucketsList prints a list of buckets in the given Bolt database. -func printBucketsList(cmd *cobra.Command, path string) error { +func bucketsFunc(cmd *cobra.Command, path string) error { // Required database path. if path == "" { return ErrPathRequired