rclone/fs/config
Nick Craig-Wood f3f48d7d49 Implement new backend config system
This unifies the 3 methods of reading config

  * command line
  * environment variable
  * config file

And allows them all to be configured in all places.  This is done by
making the []fs.Option in the backend registration be the master
source of what the backend options are.

The backend changes are:

  * Use the new configmap.Mapper parameter
  * Use configstruct to parse it into an Options struct
  * Add all config to []fs.Option including defaults and help
  * Remove all uses of pflag
  * Remove all uses of config.FileGet
2018-07-16 21:20:47 +01:00
..
configflags Implement --max-transfer flag to quit transferring at a limit #1655 2018-05-05 12:58:28 +01:00
configmap config: add configmap package to manage config in a generic way 2018-07-16 08:50:52 +01:00
configstruct config: add configstruct parser to parse maps into config structures 2018-07-16 08:50:52 +01:00
flags fs: factor OptionToEnv and ConfigToEnv into fs 2018-07-16 08:50:52 +01:00
obscure config: factor Obscure and Reveal into its own package 2018-01-18 20:19:55 +00:00
testdata Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config.go Implement new backend config system 2018-07-16 21:20:47 +01:00
config_other.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_read_password.go config: fix error reading password from piped input - fixes #1308 2018-06-28 11:54:15 +01:00
config_read_password_unsupported.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_test.go config: Improve the Provider matching to have a negated match #2140 2018-04-13 16:06:37 +01:00
config_unix.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00