Move 'dump' to 'debug dump'

This commit is contained in:
Alexander Neumann 2017-10-12 20:18:45 +02:00
parent 74dcf41f25
commit f2314b26ba
1 changed files with 7 additions and 1 deletions

View File

@ -19,6 +19,11 @@ import (
"github.com/restic/restic/internal/worker"
)
var cmdDebug = &cobra.Command{
Use: "debug",
Short: "Debug commands",
}
var cmdDump = &cobra.Command{
Use: "dump [indexes|snapshots|all|packs]",
Short: "Dump data structures",
@ -32,7 +37,8 @@ is used for debugging purposes only.`,
}
func init() {
cmdRoot.AddCommand(cmdDump)
cmdRoot.AddCommand(cmdDebug)
cmdDebug.AddCommand(cmdDump)
}
func prettyPrintJSON(wr io.Writer, item interface{}) error {