Implement resync in config option (Issue #874) (#875)

* Implement the ability to set --resync as a config option, default is false
This commit is contained in:
abraunegg 2020-04-20 13:03:36 +10:00 committed by GitHub
parent 183567eba6
commit ccbeae4942
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

1
config
View file

@ -35,3 +35,4 @@
# remove_source_files = "false"
# skip_dir_strict_match = "false"
# application_id = ""
# resync = "false"

View file

@ -287,10 +287,10 @@ The default configuration file is listed below:
# remove_source_files = "false"
# skip_dir_strict_match = "false"
# application_id = ""
# resync = "false"
```
### 'config' file configuration examples:
The below are 'config' file examples to assist with configuration of the 'config' file:

View file

@ -74,6 +74,8 @@ final class Config
// Allow for a custom Client ID / Application ID to be used to replace the inbuilt default
// This is a config file option ONLY
stringValues["application_id"] = "";
// allow for resync to be set via config file
boolValues["resync"] = false;
// Determine the users home directory.
// Need to avoid using ~ here as expandTilde() below does not interpret correctly when running under init.d or systemd scripts
@ -170,7 +172,6 @@ final class Config
stringValues["auth_files"] = "";
boolValues["display_config"] = false;
boolValues["display_sync_status"] = false;
boolValues["resync"] = false;
boolValues["print_token"] = false;
boolValues["logout"] = false;
boolValues["monitor"] = false;