1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 08:16:36 +00:00

Move 'dump' to 'debug dump'

This commit is contained in:
Alexander Neumann 2017-10-12 20:18:45 +02:00
parent 74dcf41f25
commit f2314b26ba

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 {