influxdb/cmd/influxd/inspect/inspect.go

33 lines
674 B
Go
Raw Normal View History

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",
}
// 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(),
NewExportBlocksCommand(),
NewExportIndexCommand(),
NewReportTSMCommand(),
NewVerifyTSMCommand(),
NewVerifyWALCommand(),
NewReportTSICommand(),
NewVerifySeriesFileCommand(),
NewDumpWALCommand(),
NewDumpTSICommand(),
2019-03-19 14:25:51 +00:00
}
base.AddCommand(subCommands...)
2019-03-19 14:25:51 +00:00
return base
}