From cd5cbe0910afa7dbe7aac7c185ff68928d1ee9c5 Mon Sep 17 00:00:00 2001 From: Fabian Wickborn Date: Sat, 14 Oct 2017 13:55:00 +0200 Subject: [PATCH] Rename debug dump related variable and run function --- cmd/restic/cmd_debug.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/restic/cmd_debug.go b/cmd/restic/cmd_debug.go index ce233c613..6a06e96ed 100644 --- a/cmd/restic/cmd_debug.go +++ b/cmd/restic/cmd_debug.go @@ -24,7 +24,7 @@ var cmdDebug = &cobra.Command{ Short: "Debug commands", } -var cmdDump = &cobra.Command{ +var cmdDebugDump = &cobra.Command{ Use: "dump [indexes|snapshots|all|packs]", Short: "Dump data structures", Long: ` @@ -32,13 +32,13 @@ The "dump" command dumps data structures from the repository as JSON objects. It is used for debugging purposes only.`, DisableAutoGenTag: true, RunE: func(cmd *cobra.Command, args []string) error { - return runDump(globalOptions, args) + return runDebugDump(globalOptions, args) }, } func init() { cmdRoot.AddCommand(cmdDebug) - cmdDebug.AddCommand(cmdDump) + cmdDebug.AddCommand(cmdDebugDump) } func prettyPrintJSON(wr io.Writer, item interface{}) error { @@ -165,7 +165,7 @@ func dumpIndexes(repo restic.Repository) error { return nil } -func runDump(gopts GlobalOptions, args []string) error { +func runDebugDump(gopts GlobalOptions, args []string) error { if len(args) != 1 { return errors.Fatal("type not specified") }