2019-03-19 14:25:51 +00:00
|
|
|
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",
|
|
|
|
}
|
|
|
|
|
2019-06-27 00:59:09 +00:00
|
|
|
// List of available sub-commands
|
|
|
|
// If a new sub-command is created, it must be added here
|
|
|
|
subCommands := []*cobra.Command{
|
2019-09-13 10:04:59 +00:00
|
|
|
NewBuildTSICommand(),
|
2019-06-28 16:18:41 +00:00
|
|
|
NewExportBlocksCommand(),
|
2019-09-12 15:46:53 +00:00
|
|
|
NewExportIndexCommand(),
|
2019-06-27 00:59:09 +00:00
|
|
|
NewReportTSMCommand(),
|
2019-07-03 23:30:29 +00:00
|
|
|
NewVerifyTSMCommand(),
|
2019-06-27 00:59:09 +00:00
|
|
|
NewVerifyWALCommand(),
|
2019-07-25 23:45:42 +00:00
|
|
|
NewReportTSICommand(),
|
2019-08-21 15:40:02 +00:00
|
|
|
NewVerifySeriesFileCommand(),
|
2019-08-23 20:05:06 +00:00
|
|
|
NewDumpWALCommand(),
|
2019-08-23 18:28:43 +00:00
|
|
|
NewDumpTSICommand(),
|
2019-03-19 14:25:51 +00:00
|
|
|
}
|
|
|
|
|
2019-08-23 20:05:06 +00:00
|
|
|
base.AddCommand(subCommands...)
|
2019-03-19 14:25:51 +00:00
|
|
|
|
|
|
|
return base
|
|
|
|
}
|