From e051a34fc15ee094e0f291374c2492abe4782f7f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 23 Apr 2020 11:05:36 +0100 Subject: [PATCH] dbhashsum: deprecate: use rclone hashsum DropboxHash instead --- cmd/dbhashsum/dbhashsum.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/dbhashsum/dbhashsum.go b/cmd/dbhashsum/dbhashsum.go index 4da194117..1f0ce1e7b 100644 --- a/cmd/dbhashsum/dbhashsum.go +++ b/cmd/dbhashsum/dbhashsum.go @@ -6,6 +6,7 @@ import ( "github.com/rclone/rclone/backend/dropbox" "github.com/rclone/rclone/cmd" + "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/operations" "github.com/spf13/cobra" ) @@ -26,6 +27,7 @@ The output is in the same format as md5sum and sha1sum. Run: func(command *cobra.Command, args []string) { cmd.CheckArgs(1, 1, command, args) fsrc := cmd.NewFsSrc(args) + fs.Logf(nil, `"rclone dbhashsum" is deprecated, use "rclone hashsum %v %s" instead`, dropbox.DbHashType, args[0]) cmd.Run(false, false, command, func() error { return operations.HashLister(context.Background(), dropbox.DbHashType, fsrc, os.Stdout) })