From 971b861b41e8717942a48a7b744897623c31102b Mon Sep 17 00:00:00 2001 From: tommy shem Date: Mon, 18 Nov 2024 23:35:54 +0000 Subject: [PATCH] changed func name --- cmd/bbolt/command_buckets.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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