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:
parent
74dcf41f25
commit
f2314b26ba
1 changed files with 7 additions and 1 deletions
|
@ -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 {
|
Loading…
Reference in a new issue