"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
config: expand docs on config protocol #3455
Nick Craig-Wood82f1f7d2c4a1
diff --git a/cmd/config/config.go b/cmd/config/config.goindex e7d9359cb..5d2475da8 100644--- a/cmd/config/config.go+++ b/cmd/config/config.go@@ -134,6 +134,7 @@ it.This will look something like (some irrelevant detail removed):+|||{"State": "*oauth-islocal,teamdrive,,","Option": {@@ -152,15 +153,29 @@ This will look something like (some irrelevant detail removed):],"Required": false,"IsPassword": false,- "Type": "bool"+ "Type": "bool",+ "Exclusive": true,},"Error": "",}+|||The format of |Option| is the same as returned by |rclone configproviders|. The question should be asked to the user and returned torclone as the |--result| option along with the |--state| parameter.+The keys of |Option| are used as follows:++- |Name| - name of variable - show to user+- |Help| - help text. Hard wrapped at 80 chars. Any URLs should be clicky.+- |Default| - default value - return this if the user just wants the default.+- |Examples| - the user should be able to choose one of these+- |Required| - the value should be non-empty+- |IsPassword| - the value is a password and should be edited as such+- |Type| - type of value, eg |bool|, |string|, |int| and others+- |Exclusive| - if set no free-form entry allowed only the |Examples|+- Irrelevant keys |Provider|, |ShortOpt|, |Hide|, |NoPrefix|, |Advanced|+If |Error| is set then it should be shown to the user at the sametime as the question.@@ -176,6 +191,9 @@ with |State| as empty string.If |--all| is passed then rclone will ask all the config questions,not just the post config questions. Any parameters are used asdefaults for questions as usual.++Note that |bin/config.py| in the rclone source implements this protocol+as a readable demonstration.`, "|", "`")var configCreateCommand = &cobra.Command{Use: "create `name` `type` [`key` `value`]*",