mirror of https://github.com/etcd-io/bbolt.git
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…
Reference in New Issue