rclone/fs/config
albertony 38e2f835ed config: fix handling of default, exclusive and required properties of multiple-choice options
Previously an empty input (just pressing enter) was only allowed for multiple-choice
options that did not have the Exclusive property set. With this change the existing
Required property is introduced into the multiple choice handling, so that one can have
Exclusive and Required options where only a value from the list is allowed, and one can
have Exclusive but not Required options where an empty value is accepted but any
non-empty value must still be matching an item from the list.

Fixes #5549

See #5551
2022-01-16 14:57:38 +01:00
..
configfile Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
configflags docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
configmap Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
configstruct Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
flags config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00
obscure Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
testdata Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
authorize.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
config_read_password_unsupported.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
config_read_password.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
config_test.go config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
config.go config: fix handling of default, exclusive and required properties of multiple-choice options 2022-01-16 14:57:38 +01:00
crypt_internal_test.go config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
crypt_test.go config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
crypt.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
default_storage_test.go config: replace defaultConfig with a thread-safe in-memory implementation 2021-05-07 16:04:09 +01:00
default_storage.go config: replace defaultConfig with a thread-safe in-memory implementation 2021-05-07 16:04:09 +01:00
rc_test.go config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
rc.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
ui_test.go config: fix handling of default, exclusive and required properties of multiple-choice options 2022-01-16 14:57:38 +01:00
ui.go config: fix handling of default, exclusive and required properties of multiple-choice options 2022-01-16 14:57:38 +01:00