mirror of https://github.com/etcd-io/bbolt.git
28 lines
441 B
Go
28 lines
441 B
Go
package main
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
const (
|
|
cliName = "bbolt"
|
|
cliDescription = "A simple command line tool for inspecting bbolt databases"
|
|
)
|
|
|
|
func NewRootCommand() *cobra.Command {
|
|
rootCmd := &cobra.Command{
|
|
Use: cliName,
|
|
Short: cliDescription,
|
|
Version: "dev",
|
|
}
|
|
|
|
rootCmd.AddCommand(
|
|
newVersionCommand(),
|
|
newSurgeryCobraCommand(),
|
|
newInspectCommand(),
|
|
newCheckCommand(),
|
|
)
|
|
|
|
return rootCmd
|
|
}
|