mirror of https://github.com/restic/restic.git
Rename function in debug 'dump' command
This commit is contained in:
parent
5cf7c827b8
commit
8e7202bd6a
|
@ -48,7 +48,7 @@ func prettyPrintJSON(wr io.Writer, item interface{}) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func printSnapshots(repo *repository.Repository, wr io.Writer) error {
|
func debugPrintSnapshots(repo *repository.Repository, wr io.Writer) error {
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
defer close(done)
|
defer close(done)
|
||||||
|
|
||||||
|
@ -226,14 +226,14 @@ func (cmd CmdDump) Execute(args []string) error {
|
||||||
case "indexes":
|
case "indexes":
|
||||||
return cmd.DumpIndexes()
|
return cmd.DumpIndexes()
|
||||||
case "snapshots":
|
case "snapshots":
|
||||||
return printSnapshots(repo, os.Stdout)
|
return debugPrintSnapshots(repo, os.Stdout)
|
||||||
case "trees":
|
case "trees":
|
||||||
return printTrees(repo, os.Stdout)
|
return printTrees(repo, os.Stdout)
|
||||||
case "packs":
|
case "packs":
|
||||||
return printPacks(repo, os.Stdout)
|
return printPacks(repo, os.Stdout)
|
||||||
case "all":
|
case "all":
|
||||||
fmt.Printf("snapshots:\n")
|
fmt.Printf("snapshots:\n")
|
||||||
err := printSnapshots(repo, os.Stdout)
|
err := debugPrintSnapshots(repo, os.Stdout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue