Skip to content

Commit

Permalink
changed func name
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy shem committed Nov 18, 2024
1 parent a198a24 commit 971b861
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/bbolt/command_buckets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 971b861

Please sign in to comment.