Skip to content

Commit

Permalink
cmd: replace CobraCommand suffix with Command
Browse files Browse the repository at this point in the history
* Rename newInspectCobraCommand to newInspectCommand
* Rename newVersionCobraCommand to newVersionCommand

Signed-off-by: Ivan Valdes <[email protected]>
  • Loading branch information
ivanvc committed Apr 18, 2024
1 parent df86a96 commit 6ff4ce7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/bbolt/command_inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions cmd/bbolt/command_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func NewRootCommand() *cobra.Command {
}

rootCmd.AddCommand(
newVersionCobraCommand(),
newVersionCommand(),
newSurgeryCobraCommand(),
newInspectCobraCommand(),
newInspectCommand(),
newCheckCommand(),
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/bbolt/command_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6ff4ce7

Please sign in to comment.