Skip to content

Commit

Permalink
Merge pull request #732 from ivanvc/rename-cobra-commands
Browse files Browse the repository at this point in the history
Rename cobra commands
  • Loading branch information
ahrtr authored Apr 18, 2024
2 parents 2468774 + 6ff4ce7 commit f5447f0
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 f5447f0

Please sign in to comment.