From 19429083adc1ddccb6c7ed8cd5b69c86b8da1f6d Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 11 Oct 2019 16:58:11 +0100 Subject: [PATCH] cmd: fix spelling of Definition --- cmd/authorize/authorize.go | 4 ++-- cmd/cat/cat.go | 14 +++++++------- cmd/check/check.go | 8 ++++---- cmd/cleanup/cleanup.go | 4 ++-- cmd/copy/copy.go | 6 +++--- cmd/copyto/copyto.go | 4 ++-- cmd/copyurl/copyurl.go | 6 +++--- cmd/cryptcheck/cryptcheck.go | 6 +++--- cmd/dbhashsum/dbhashsum.go | 4 ++-- cmd/dedupe/dedupe.go | 6 +++--- cmd/delete/delete.go | 4 ++-- cmd/deletefile/deletefile.go | 4 ++-- cmd/gendocs/gendocs.go | 4 ++-- cmd/info/info.go | 16 ++++++++-------- cmd/link/link.go | 4 ++-- cmd/listremotes/listremotes.go | 6 +++--- cmd/ls/ls.go | 4 ++-- cmd/lsd/lsd.go | 6 +++--- cmd/lsf/lsf.go | 8 ++++---- cmd/lsjson/lsjson.go | 18 +++++++++--------- cmd/lsl/lsl.go | 4 ++-- cmd/md5sum/md5sum.go | 4 ++-- cmd/memtest/memtest.go | 4 ++-- cmd/mkdir/mkdir.go | 4 ++-- cmd/mountlib/mount.go | 8 ++++---- cmd/move/move.go | 8 ++++---- cmd/moveto/moveto.go | 4 ++-- cmd/ncdu/ncdu.go | 4 ++-- cmd/obscure/obscure.go | 4 ++-- cmd/purge/purge.go | 4 ++-- cmd/rc/rc.go | 16 ++++++++-------- cmd/rcat/rcat.go | 4 ++-- cmd/reveal/reveal.go | 4 ++-- cmd/rmdir/rmdir.go | 4 ++-- cmd/settier/settier.go | 4 ++-- cmd/sha1sum/sha1sum.go | 4 ++-- cmd/sync/sync.go | 6 +++--- cmd/touch/touch.go | 6 +++--- cmd/tree/tree.go | 6 +++--- 39 files changed, 119 insertions(+), 119 deletions(-) diff --git a/cmd/authorize/authorize.go b/cmd/authorize/authorize.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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 possible diff --git a/cmd/link/link.go b/cmd/link/link.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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 function func 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 options flags.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 flags vfsflags.AddFlags(flagSet) - return commandDefintion + return commandDefinition } // ClipBlocks clips the blocks pointed to to the OS max diff --git a/cmd/move/move.go b/cmd/move/move.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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.go index 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() // List flags.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: `