"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
cmd: fix spelling of Definition
Nick Craig-Wood19429083adc1
diff --git a/cmd/authorize/authorize.go b/cmd/authorize/authorize.goindex b43f58a1e..076821467 100644--- a/cmd/authorize/authorize.go+++ b/cmd/authorize/authorize.go@@ -7,10 +7,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "authorize",Short: `Remote authorization.`,Long: `diff --git a/cmd/cat/cat.go b/cmd/cat/cat.goindex 567aaaa45..eded44b3f 100644--- a/cmd/cat/cat.go+++ b/cmd/cat/cat.go@@ -22,15 +22,15 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().Int64VarP(&head, "head", "", head, "Only print the first N characters.")- commandDefintion.Flags().Int64VarP(&tail, "tail", "", tail, "Only print the last N characters.")- commandDefintion.Flags().Int64VarP(&offset, "offset", "", offset, "Start printing at offset N (or from end if -ve).")- commandDefintion.Flags().Int64VarP(&count, "count", "", count, "Only print N characters.")- commandDefintion.Flags().BoolVarP(&discard, "discard", "", discard, "Discard the output instead of printing.")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().Int64VarP(&head, "head", "", head, "Only print the first N characters.")+ commandDefinition.Flags().Int64VarP(&tail, "tail", "", tail, "Only print the last N characters.")+ commandDefinition.Flags().Int64VarP(&offset, "offset", "", offset, "Start printing at offset N (or from end if -ve).")+ commandDefinition.Flags().Int64VarP(&count, "count", "", count, "Only print N characters.")+ commandDefinition.Flags().BoolVarP(&discard, "discard", "", discard, "Discard the output instead of printing.")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "cat remote:path",Short: `Concatenates any files and sends them to stdout.`,Long: `diff --git a/cmd/check/check.go b/cmd/check/check.goindex 05e1f779e..e09a5cc65 100644--- a/cmd/check/check.go+++ b/cmd/check/check.go@@ -15,12 +15,12 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&download, "download", "", download, "Check by downloading rather than with hash.")- commandDefintion.Flags().BoolVarP(&oneway, "one-way", "", oneway, "Check one way only, source files must exist on remote")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&download, "download", "", download, "Check by downloading rather than with hash.")+ commandDefinition.Flags().BoolVarP(&oneway, "one-way", "", oneway, "Check one way only, source files must exist on remote")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "check source:path dest:path",Short: `Checks the files in the source and destination match.`,Long: `diff --git a/cmd/cleanup/cleanup.go b/cmd/cleanup/cleanup.goindex b12d9d425..be0795b0d 100644--- a/cmd/cleanup/cleanup.go+++ b/cmd/cleanup/cleanup.go@@ -9,10 +9,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "cleanup remote:path",Short: `Clean up the remote if possible`,Long: `diff --git a/cmd/copy/copy.go b/cmd/copy/copy.goindex c10a653fe..7ee130d20 100644--- a/cmd/copy/copy.go+++ b/cmd/copy/copy.go@@ -14,11 +14,11 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&createEmptySrcDirs, "create-empty-src-dirs", "", createEmptySrcDirs, "Create empty source dirs on destination after copy")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&createEmptySrcDirs, "create-empty-src-dirs", "", createEmptySrcDirs, "Create empty source dirs on destination after copy")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "copy source:path dest:path",Short: `Copy files from source to dest, skipping already copied`,Long: `diff --git a/cmd/copyto/copyto.go b/cmd/copyto/copyto.goindex 997ef1325..4c8f82ddd 100644--- a/cmd/copyto/copyto.go+++ b/cmd/copyto/copyto.go@@ -10,10 +10,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "copyto source:path dest:path",Short: `Copy files from source to dest, skipping already copied`,Long: `diff --git a/cmd/copyurl/copyurl.go b/cmd/copyurl/copyurl.goindex 343dc8679..ef9e107c9 100644--- a/cmd/copyurl/copyurl.go+++ b/cmd/copyurl/copyurl.go@@ -14,11 +14,11 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&autoFilename, "auto-filename", "a", autoFilename, "Get the file name from the url and use it for destination file path")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&autoFilename, "auto-filename", "a", autoFilename, "Get the file name from the url and use it for destination file path")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "copyurl https://example.com dest:path",Short: `Copy url content to dest.`,Long: `diff --git a/cmd/cryptcheck/cryptcheck.go b/cmd/cryptcheck/cryptcheck.goindex ae2dc402c..4e35ec72d 100644--- a/cmd/cryptcheck/cryptcheck.go+++ b/cmd/cryptcheck/cryptcheck.go@@ -18,11 +18,11 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&oneway, "one-way", "", oneway, "Check one way only, source files must exist on destination")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&oneway, "one-way", "", oneway, "Check one way only, source files must exist on destination")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "cryptcheck remote:path cryptedremote:path",Short: `Cryptcheck checks the integrity of a crypted remote.`,Long: `diff --git a/cmd/dbhashsum/dbhashsum.go b/cmd/dbhashsum/dbhashsum.goindex 61715b377..f2d03d095 100644--- a/cmd/dbhashsum/dbhashsum.go+++ b/cmd/dbhashsum/dbhashsum.go@@ -12,10 +12,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "dbhashsum remote:path",Short: `Produces a Dropbox hash file for all the objects in the path.`,Long: `diff --git a/cmd/dedupe/dedupe.go b/cmd/dedupe/dedupe.goindex 28623a557..762014b43 100644--- a/cmd/dedupe/dedupe.go+++ b/cmd/dedupe/dedupe.go@@ -14,11 +14,11 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().VarP(&dedupeMode, "dedupe-mode", "", "Dedupe mode interactive|skip|first|newest|oldest|rename.")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().VarP(&dedupeMode, "dedupe-mode", "", "Dedupe mode interactive|skip|first|newest|oldest|rename.")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "dedupe [mode] remote:path",Short: `Interactively find duplicate files and delete/rename them.`,Long: `diff --git a/cmd/delete/delete.go b/cmd/delete/delete.goindex e7ec3f2fa..0e9f5b3da 100644--- a/cmd/delete/delete.go+++ b/cmd/delete/delete.go@@ -9,10 +9,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "delete remote:path",Short: `Remove the contents of path.`,Long: `diff --git a/cmd/deletefile/deletefile.go b/cmd/deletefile/deletefile.goindex b03f5a7c0..9e8731aa4 100644--- a/cmd/deletefile/deletefile.go+++ b/cmd/deletefile/deletefile.go@@ -10,10 +10,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "deletefile remote:path",Short: `Remove a single file from remote.`,Long: `diff --git a/cmd/gendocs/gendocs.go b/cmd/gendocs/gendocs.goindex 4bfcd2c13..968816ae9 100644--- a/cmd/gendocs/gendocs.go+++ b/cmd/gendocs/gendocs.go@@ -17,7 +17,7 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}const gendocFrontmatterTemplate = `---@@ -28,7 +28,7 @@ url: %s---`-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "gendocs output_directory",Short: `Output markdown docs for rclone to the directory supplied.`,Long: `diff --git a/cmd/info/info.go b/cmd/info/info.goindex ca84a2c05..10bc9953d 100644--- a/cmd/info/info.go+++ b/cmd/info/info.go@@ -41,16 +41,16 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().StringVarP(&writeJSON, "write-json", "", "", "Write results to file.")- commandDefintion.Flags().BoolVarP(&checkNormalization, "check-normalization", "", true, "Check UTF-8 Normalization.")- commandDefintion.Flags().BoolVarP(&checkControl, "check-control", "", true, "Check control characters.")- commandDefintion.Flags().DurationVarP(&uploadWait, "upload-wait", "", 0, "Wait after writing a file.")- commandDefintion.Flags().BoolVarP(&checkLength, "check-length", "", true, "Check max filename length.")- commandDefintion.Flags().BoolVarP(&checkStreaming, "check-streaming", "", true, "Check uploads with indeterminate file size.")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().StringVarP(&writeJSON, "write-json", "", "", "Write results to file.")+ commandDefinition.Flags().BoolVarP(&checkNormalization, "check-normalization", "", true, "Check UTF-8 Normalization.")+ commandDefinition.Flags().BoolVarP(&checkControl, "check-control", "", true, "Check control characters.")+ commandDefinition.Flags().DurationVarP(&uploadWait, "upload-wait", "", 0, "Wait after writing a file.")+ commandDefinition.Flags().BoolVarP(&checkLength, "check-length", "", true, "Check max filename length.")+ commandDefinition.Flags().BoolVarP(&checkStreaming, "check-streaming", "", true, "Check uploads with indeterminate file size.")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "info [remote:path]+",Short: `Discovers file name or other limitations for paths.`,Long: `rclone info discovers what filenames and upload methods are possiblediff --git a/cmd/link/link.go b/cmd/link/link.goindex 0f1447fc3..4ea470f85 100644--- a/cmd/link/link.go+++ b/cmd/link/link.go@@ -10,10 +10,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "link remote:path",Short: `Generate public link to file/folder.`,Long: `diff --git a/cmd/listremotes/listremotes.go b/cmd/listremotes/listremotes.goindex 739ed78ba..8a442b49f 100644--- a/cmd/listremotes/listremotes.go+++ b/cmd/listremotes/listremotes.go@@ -15,11 +15,11 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&listLong, "long", "", listLong, "Show the type as well as names.")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&listLong, "long", "", listLong, "Show the type as well as names.")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "listremotes",Short: `List all the remotes in the config file.`,Long: `diff --git a/cmd/ls/ls.go b/cmd/ls/ls.goindex 9a5164aff..e08a2c21d 100644--- a/cmd/ls/ls.go+++ b/cmd/ls/ls.go@@ -11,10 +11,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "ls remote:path",Short: `List the objects in the path with size and path.`,Long: `diff --git a/cmd/lsd/lsd.go b/cmd/lsd/lsd.goindex 9b540fb8d..7130bd7ae 100644--- a/cmd/lsd/lsd.go+++ b/cmd/lsd/lsd.go@@ -16,11 +16,11 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&recurse, "recursive", "R", false, "Recurse into the listing.")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&recurse, "recursive", "R", false, "Recurse into the listing.")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "lsd remote:path",Short: `List all directories/containers/buckets in the path.`,Long: `diff --git a/cmd/lsf/lsf.go b/cmd/lsf/lsf.goindex 1284f785c..4b1358042 100644--- a/cmd/lsf/lsf.go+++ b/cmd/lsf/lsf.go@@ -28,8 +28,8 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- flags := commandDefintion.Flags()+ cmd.Root.AddCommand(commandDefinition)+ flags := commandDefinition.Flags()flags.StringVarP(&format, "format", "F", "p", "Output format - see help for details")flags.StringVarP(&separator, "separator", "s", ";", "Separator for the items in the format.")flags.BoolVarP(&dirSlash, "dir-slash", "d", true, "Append a slash to directory names.")@@ -38,10 +38,10 @@ func init() {flags.BoolVarP(&dirsOnly, "dirs-only", "", false, "Only list directories.")flags.BoolVarP(&csv, "csv", "", false, "Output in CSV format.")flags.BoolVarP(&absolute, "absolute", "", false, "Put a leading / in front of path names.")- commandDefintion.Flags().BoolVarP(&recurse, "recursive", "R", false, "Recurse into the listing.")+ commandDefinition.Flags().BoolVarP(&recurse, "recursive", "R", false, "Recurse into the listing.")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "lsf remote:path",Short: `List directories and objects in remote:path formatted for parsing`,Long: `diff --git a/cmd/lsjson/lsjson.go b/cmd/lsjson/lsjson.goindex c07dd51c6..082a65d51 100644--- a/cmd/lsjson/lsjson.go+++ b/cmd/lsjson/lsjson.go@@ -18,17 +18,17 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&opt.Recurse, "recursive", "R", false, "Recurse into the listing.")- commandDefintion.Flags().BoolVarP(&opt.ShowHash, "hash", "", false, "Include hashes in the output (may take longer).")- commandDefintion.Flags().BoolVarP(&opt.NoModTime, "no-modtime", "", false, "Don't read the modification time (can speed things up).")- commandDefintion.Flags().BoolVarP(&opt.ShowEncrypted, "encrypted", "M", false, "Show the encrypted names.")- commandDefintion.Flags().BoolVarP(&opt.ShowOrigIDs, "original", "", false, "Show the ID of the underlying Object.")- commandDefintion.Flags().BoolVarP(&opt.FilesOnly, "files-only", "", false, "Show only files in the listing.")- commandDefintion.Flags().BoolVarP(&opt.DirsOnly, "dirs-only", "", false, "Show only directories in the listing.")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&opt.Recurse, "recursive", "R", false, "Recurse into the listing.")+ commandDefinition.Flags().BoolVarP(&opt.ShowHash, "hash", "", false, "Include hashes in the output (may take longer).")+ commandDefinition.Flags().BoolVarP(&opt.NoModTime, "no-modtime", "", false, "Don't read the modification time (can speed things up).")+ commandDefinition.Flags().BoolVarP(&opt.ShowEncrypted, "encrypted", "M", false, "Show the encrypted names.")+ commandDefinition.Flags().BoolVarP(&opt.ShowOrigIDs, "original", "", false, "Show the ID of the underlying Object.")+ commandDefinition.Flags().BoolVarP(&opt.FilesOnly, "files-only", "", false, "Show only files in the listing.")+ commandDefinition.Flags().BoolVarP(&opt.DirsOnly, "dirs-only", "", false, "Show only directories in the listing.")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "lsjson remote:path",Short: `List directories and objects in the path in JSON format.`,Long: `List directories and objects in the path in JSON format.diff --git a/cmd/lsl/lsl.go b/cmd/lsl/lsl.goindex 0b6eea948..f2f40f7a7 100644--- a/cmd/lsl/lsl.go+++ b/cmd/lsl/lsl.go@@ -11,10 +11,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "lsl remote:path",Short: `List the objects in path with modification time, size and path.`,Long: `diff --git a/cmd/md5sum/md5sum.go b/cmd/md5sum/md5sum.goindex 07b5e43f7..c7996e66a 100644--- a/cmd/md5sum/md5sum.go+++ b/cmd/md5sum/md5sum.go@@ -10,10 +10,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "md5sum remote:path",Short: `Produces an md5sum file for all the objects in the path.`,Long: `diff --git a/cmd/memtest/memtest.go b/cmd/memtest/memtest.goindex 7d3068f46..f31b1a5e2 100644--- a/cmd/memtest/memtest.go+++ b/cmd/memtest/memtest.go@@ -12,10 +12,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "memtest remote:path",Short: `Load all the objects at remote:path and report memory stats.`,Hidden: true,diff --git a/cmd/mkdir/mkdir.go b/cmd/mkdir/mkdir.goindex 0c48b609a..e773dc37a 100644--- a/cmd/mkdir/mkdir.go+++ b/cmd/mkdir/mkdir.go@@ -9,10 +9,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "mkdir remote:path",Short: `Make the path if it doesn't already exist.`,Run: func(command *cobra.Command, args []string) {diff --git a/cmd/mountlib/mount.go b/cmd/mountlib/mount.goindex 93bc6c61c..23b283edc 100644--- a/cmd/mountlib/mount.go+++ b/cmd/mountlib/mount.go@@ -94,7 +94,7 @@ func checkMountpointOverlap(root, mountpoint string) error {// NewMountCommand makes a mount command with the given name and Mount functionfunc NewMountCommand(commandName string, Mount func(f fs.Fs, mountpoint string) error) *cobra.Command {- var commandDefintion = &cobra.Command{+ var commandDefinition = &cobra.Command{Use: commandName + " remote:path /path/to/mountpoint",Short: `Mount the remote as file system on a mountpoint.`,Long: `@@ -295,10 +295,10 @@ be copied to the vfs cache before opening with --vfs-cache-mode full.}// Register the command- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)// Add flags- flagSet := commandDefintion.Flags()+ flagSet := commandDefinition.Flags()flags.BoolVarP(flagSet, &DebugFUSE, "debug-fuse", "", DebugFUSE, "Debug the FUSE internals - needs -v.")// mount optionsflags.BoolVarP(flagSet, &AllowNonEmpty, "allow-non-empty", "", AllowNonEmpty, "Allow mounting over a non-empty directory.")@@ -322,7 +322,7 @@ be copied to the vfs cache before opening with --vfs-cache-mode full.// Add in the generic flagsvfsflags.AddFlags(flagSet)- return commandDefintion+ return commandDefinition}// ClipBlocks clips the blocks pointed to to the OS maxdiff --git a/cmd/move/move.go b/cmd/move/move.goindex c9947a852..f214aaa09 100644--- a/cmd/move/move.go+++ b/cmd/move/move.go@@ -16,12 +16,12 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&deleteEmptySrcDirs, "delete-empty-src-dirs", "", deleteEmptySrcDirs, "Delete empty source dirs after move")- commandDefintion.Flags().BoolVarP(&createEmptySrcDirs, "create-empty-src-dirs", "", createEmptySrcDirs, "Create empty source dirs on destination after move")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&deleteEmptySrcDirs, "delete-empty-src-dirs", "", deleteEmptySrcDirs, "Delete empty source dirs after move")+ commandDefinition.Flags().BoolVarP(&createEmptySrcDirs, "create-empty-src-dirs", "", createEmptySrcDirs, "Create empty source dirs on destination after move")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "move source:path dest:path",Short: `Move files from source to dest.`,Long: `diff --git a/cmd/moveto/moveto.go b/cmd/moveto/moveto.goindex c46f3c519..d5f0f336e 100644--- a/cmd/moveto/moveto.go+++ b/cmd/moveto/moveto.go@@ -10,10 +10,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "moveto source:path dest:path",Short: `Move file or directory from source to dest.`,Long: `diff --git a/cmd/ncdu/ncdu.go b/cmd/ncdu/ncdu.goindex 1b7f32465..cfa662aca 100644--- a/cmd/ncdu/ncdu.go+++ b/cmd/ncdu/ncdu.go@@ -24,10 +24,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "ncdu remote:path",Short: `Explore a remote with a text based user interface.`,Long: `diff --git a/cmd/obscure/obscure.go b/cmd/obscure/obscure.goindex 5e0891686..e5545f2ec 100644--- a/cmd/obscure/obscure.go+++ b/cmd/obscure/obscure.go@@ -9,10 +9,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "obscure password",Short: `Obscure password for use in the rclone.conf`,Run: func(command *cobra.Command, args []string) {diff --git a/cmd/purge/purge.go b/cmd/purge/purge.goindex 47327821d..c62955031 100644--- a/cmd/purge/purge.go+++ b/cmd/purge/purge.go@@ -9,10 +9,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "purge remote:path",Short: `Remove the path and all of its contents.`,Long: `diff --git a/cmd/rc/rc.go b/cmd/rc/rc.goindex b1661ca64..7960df700 100644--- a/cmd/rc/rc.go+++ b/cmd/rc/rc.go@@ -29,16 +29,16 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&noOutput, "no-output", "", noOutput, "If set don't output the JSON result.")- commandDefintion.Flags().StringVarP(&url, "url", "", url, "URL to connect to rclone remote control.")- commandDefintion.Flags().StringVarP(&jsonInput, "json", "", jsonInput, "Input JSON - use instead of key=value args.")- commandDefintion.Flags().StringVarP(&authUser, "user", "", "", "Username to use to rclone remote control.")- commandDefintion.Flags().StringVarP(&authPass, "pass", "", "", "Password to use to connect to rclone remote control.")- commandDefintion.Flags().BoolVarP(&loopback, "loopback", "", false, "If set connect to this rclone instance not via HTTP.")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&noOutput, "no-output", "", noOutput, "If set don't output the JSON result.")+ commandDefinition.Flags().StringVarP(&url, "url", "", url, "URL to connect to rclone remote control.")+ commandDefinition.Flags().StringVarP(&jsonInput, "json", "", jsonInput, "Input JSON - use instead of key=value args.")+ commandDefinition.Flags().StringVarP(&authUser, "user", "", "", "Username to use to rclone remote control.")+ commandDefinition.Flags().StringVarP(&authPass, "pass", "", "", "Password to use to connect to rclone remote control.")+ commandDefinition.Flags().BoolVarP(&loopback, "loopback", "", false, "If set connect to this rclone instance not via HTTP.")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "rc commands parameter",Short: `Run a command against a running rclone.`,Long: `diff --git a/cmd/rcat/rcat.go b/cmd/rcat/rcat.goindex c33aeda74..205254562 100644--- a/cmd/rcat/rcat.go+++ b/cmd/rcat/rcat.go@@ -12,10 +12,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "rcat remote:path",Short: `Copies standard input to file on remote.`,Long: `diff --git a/cmd/reveal/reveal.go b/cmd/reveal/reveal.goindex aebd7c0d4..817dd92dd 100644--- a/cmd/reveal/reveal.go+++ b/cmd/reveal/reveal.go@@ -9,10 +9,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "reveal password",Short: `Reveal obscured password from rclone.conf`,Run: func(command *cobra.Command, args []string) {diff --git a/cmd/rmdir/rmdir.go b/cmd/rmdir/rmdir.goindex c9ec1f607..1c8d6f4ab 100644--- a/cmd/rmdir/rmdir.go+++ b/cmd/rmdir/rmdir.go@@ -9,10 +9,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "rmdir remote:path",Short: `Remove the path if empty.`,Long: `diff --git a/cmd/settier/settier.go b/cmd/settier/settier.goindex 19f6601b7..da8e54d59 100644--- a/cmd/settier/settier.go+++ b/cmd/settier/settier.go@@ -10,10 +10,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "settier tier remote:path",Short: `Changes storage class/tier of objects in remote.`,Long: `diff --git a/cmd/sha1sum/sha1sum.go b/cmd/sha1sum/sha1sum.goindex 72cc8c5c5..9d41d218e 100644--- a/cmd/sha1sum/sha1sum.go+++ b/cmd/sha1sum/sha1sum.go@@ -10,10 +10,10 @@ import ()func init() {- cmd.Root.AddCommand(commandDefintion)+ cmd.Root.AddCommand(commandDefinition)}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "sha1sum remote:path",Short: `Produces an sha1sum file for all the objects in the path.`,Long: `diff --git a/cmd/sync/sync.go b/cmd/sync/sync.goindex 2915ee031..ade6eb741 100644--- a/cmd/sync/sync.go+++ b/cmd/sync/sync.go@@ -14,11 +14,11 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- commandDefintion.Flags().BoolVarP(&createEmptySrcDirs, "create-empty-src-dirs", "", createEmptySrcDirs, "Create empty source dirs on destination after sync")+ cmd.Root.AddCommand(commandDefinition)+ commandDefinition.Flags().BoolVarP(&createEmptySrcDirs, "create-empty-src-dirs", "", createEmptySrcDirs, "Create empty source dirs on destination after sync")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "sync source:path dest:path",Short: `Make source and dest identical, modifying destination only.`,Long: `diff --git a/cmd/touch/touch.go b/cmd/touch/touch.goindex 9855817f8..a91ab23ea 100644--- a/cmd/touch/touch.go+++ b/cmd/touch/touch.go@@ -21,13 +21,13 @@ const defaultLayout string = "060102"const layoutDateWithTime = "2006-01-02T15:04:05"func init() {- cmd.Root.AddCommand(commandDefintion)- flags := commandDefintion.Flags()+ cmd.Root.AddCommand(commandDefinition)+ flags := commandDefinition.Flags()flags.BoolVarP(¬CreateNewFile, "no-create", "C", false, "Do not create the file if it does not exist.")flags.StringVarP(&timeAsArgument, "timestamp", "t", "", "Change the modification times to the specified time instead of the current time of day. The argument is of the form 'YYMMDD' (ex. 17.10.30) or 'YYYY-MM-DDTHH:MM:SS' (ex. 2006-01-02T15:04:05)")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "touch remote:path",Short: `Create new file or change file modification time.`,Run: func(command *cobra.Command, args []string) {diff --git a/cmd/tree/tree.go b/cmd/tree/tree.goindex dc3935ae3..43a0cbf51 100644--- a/cmd/tree/tree.go+++ b/cmd/tree/tree.go@@ -28,8 +28,8 @@ var ()func init() {- cmd.Root.AddCommand(commandDefintion)- flags := commandDefintion.Flags()+ cmd.Root.AddCommand(commandDefinition)+ flags := commandDefinition.Flags()// Listflags.BoolVarP(&opts.All, "all", "a", false, "All files are listed (list . files too).")flags.BoolVarP(&opts.DirsOnly, "dirs-only", "d", false, "List directories only.")@@ -64,7 +64,7 @@ func init() {flags.BoolVarP(&opts.Colorize, "color", "C", false, "Turn colorization on always.")}-var commandDefintion = &cobra.Command{+var commandDefinition = &cobra.Command{Use: "tree remote:path",Short: `List the contents of the remote in a tree like fashion.`,Long: `