From f2314b26ba46169f7c25fb1dd95dfaf9d62d5224 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Thu, 12 Oct 2017 20:18:45 +0200 Subject: [PATCH] Move 'dump' to 'debug dump' --- cmd/restic/{cmd_dump.go => cmd_debug.go} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) rename cmd/restic/{cmd_dump.go => cmd_debug.go} (96%) diff --git a/cmd/restic/cmd_dump.go b/cmd/restic/cmd_debug.go similarity index 96% rename from cmd/restic/cmd_dump.go rename to cmd/restic/cmd_debug.go index 9fe500ac6..ce233c613 100644 --- a/cmd/restic/cmd_dump.go +++ b/cmd/restic/cmd_debug.go @@ -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 {