forked from TrueCloudLab/restic
Move 'dump' to 'debug dump'
This commit is contained in:
parent
74dcf41f25
commit
f2314b26ba
1 changed files with 7 additions and 1 deletions
|
@ -19,6 +19,11 @@ import (
|
||||||
"github.com/restic/restic/internal/worker"
|
"github.com/restic/restic/internal/worker"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var cmdDebug = &cobra.Command{
|
||||||
|
Use: "debug",
|
||||||
|
Short: "Debug commands",
|
||||||
|
}
|
||||||
|
|
||||||
var cmdDump = &cobra.Command{
|
var cmdDump = &cobra.Command{
|
||||||
Use: "dump [indexes|snapshots|all|packs]",
|
Use: "dump [indexes|snapshots|all|packs]",
|
||||||
Short: "Dump data structures",
|
Short: "Dump data structures",
|
||||||
|
@ -32,7 +37,8 @@ is used for debugging purposes only.`,
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
cmdRoot.AddCommand(cmdDump)
|
cmdRoot.AddCommand(cmdDebug)
|
||||||
|
cmdDebug.AddCommand(cmdDump)
|
||||||
}
|
}
|
||||||
|
|
||||||
func prettyPrintJSON(wr io.Writer, item interface{}) error {
|
func prettyPrintJSON(wr io.Writer, item interface{}) error {
|
Loading…
Reference in a new issue