Merge pull request #732 from ivanvc/rename-cobra-commands

Rename cobra commands
pull/729/head
Benjamin Wang 2024-04-18 12:16:25 +01:00 committed by GitHub
commit f5447f026e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ import (
bolt "go.etcd.io/bbolt"
)
func newInspectCobraCommand() *cobra.Command {
func newInspectCommand() *cobra.Command {
inspectCmd := &cobra.Command{
Use: "inspect",
Short: "inspect the structure of the database",

View File

@ -17,9 +17,9 @@ func NewRootCommand() *cobra.Command {
}
rootCmd.AddCommand(
newVersionCobraCommand(),
newVersionCommand(),
newSurgeryCobraCommand(),
newInspectCobraCommand(),
newInspectCommand(),
newCheckCommand(),
)

View File

@ -8,7 +8,7 @@ import (
"go.etcd.io/bbolt/version"
)
func newVersionCobraCommand() *cobra.Command {
func newVersionCommand() *cobra.Command {
versionCmd := &cobra.Command{
Use: "version",
Short: "print the current version of bbolt",