cmd: replace CobraCommand suffix with Command

* Rename newInspectCobraCommand to newInspectCommand
* Rename newVersionCobraCommand to newVersionCommand

Signed-off-by: Ivan Valdes <ivan@vald.es>
pull/732/head
Ivan Valdes 2024-04-18 03:12:47 -06:00
parent df86a96bf7
commit 6ff4ce7009
No known key found for this signature in database
GPG Key ID: 4037D37741ED0CC5
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",