33 lines
674 B
Go
33 lines
674 B
Go
package inspect
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// NewCommand creates the new command.
|
|
func NewCommand() *cobra.Command {
|
|
base := &cobra.Command{
|
|
Use: "inspect",
|
|
Short: "Commands for inspecting on-disk database data",
|
|
}
|
|
|
|
// List of available sub-commands
|
|
// If a new sub-command is created, it must be added here
|
|
subCommands := []*cobra.Command{
|
|
NewBuildTSICommand(),
|
|
NewExportBlocksCommand(),
|
|
NewExportIndexCommand(),
|
|
NewReportTSMCommand(),
|
|
NewVerifyTSMCommand(),
|
|
NewVerifyWALCommand(),
|
|
NewReportTSICommand(),
|
|
NewVerifySeriesFileCommand(),
|
|
NewDumpWALCommand(),
|
|
NewDumpTSICommand(),
|
|
}
|
|
|
|
base.AddCommand(subCommands...)
|
|
|
|
return base
|
|
}
|