From 6ff4ce700938e8588dcacecf355a73354bf0ea08 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Thu, 18 Apr 2024 03:12:47 -0600 Subject: [PATCH] cmd: replace CobraCommand suffix with Command * Rename newInspectCobraCommand to newInspectCommand * Rename newVersionCobraCommand to newVersionCommand Signed-off-by: Ivan Valdes --- cmd/bbolt/command_inspect.go | 2 +- cmd/bbolt/command_root.go | 4 ++-- cmd/bbolt/command_version.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/bbolt/command_inspect.go b/cmd/bbolt/command_inspect.go index ccdb162b2..8d34401e1 100644 --- a/cmd/bbolt/command_inspect.go +++ b/cmd/bbolt/command_inspect.go @@ -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", diff --git a/cmd/bbolt/command_root.go b/cmd/bbolt/command_root.go index 979f485ab..6308a8cc2 100644 --- a/cmd/bbolt/command_root.go +++ b/cmd/bbolt/command_root.go @@ -17,9 +17,9 @@ func NewRootCommand() *cobra.Command { } rootCmd.AddCommand( - newVersionCobraCommand(), + newVersionCommand(), newSurgeryCobraCommand(), - newInspectCobraCommand(), + newInspectCommand(), newCheckCommand(), ) diff --git a/cmd/bbolt/command_version.go b/cmd/bbolt/command_version.go index 4434c515f..73019c798 100644 --- a/cmd/bbolt/command_version.go +++ b/cmd/bbolt/command_version.go @@ -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",