mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-04-27 13:12:47 +00:00
Merge pull request #732 from ivanvc/rename-cobra-commands
Rename cobra commands
This commit is contained in:
commit
f5447f026e
@ -10,7 +10,7 @@ import (
|
|||||||
bolt "go.etcd.io/bbolt"
|
bolt "go.etcd.io/bbolt"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newInspectCobraCommand() *cobra.Command {
|
func newInspectCommand() *cobra.Command {
|
||||||
inspectCmd := &cobra.Command{
|
inspectCmd := &cobra.Command{
|
||||||
Use: "inspect",
|
Use: "inspect",
|
||||||
Short: "inspect the structure of the database",
|
Short: "inspect the structure of the database",
|
||||||
|
@ -17,9 +17,9 @@ func NewRootCommand() *cobra.Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rootCmd.AddCommand(
|
rootCmd.AddCommand(
|
||||||
newVersionCobraCommand(),
|
newVersionCommand(),
|
||||||
newSurgeryCobraCommand(),
|
newSurgeryCobraCommand(),
|
||||||
newInspectCobraCommand(),
|
newInspectCommand(),
|
||||||
newCheckCommand(),
|
newCheckCommand(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"go.etcd.io/bbolt/version"
|
"go.etcd.io/bbolt/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newVersionCobraCommand() *cobra.Command {
|
func newVersionCommand() *cobra.Command {
|
||||||
versionCmd := &cobra.Command{
|
versionCmd := &cobra.Command{
|
||||||
Use: "version",
|
Use: "version",
|
||||||
Short: "print the current version of bbolt",
|
Short: "print the current version of bbolt",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user