diff --git a/Cargo.toml b/Cargo.toml index 21b80f4..ab36137 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "backup-config" -version = "0.1.2" +version = "0.1.3" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/lib.rs b/src/lib.rs index 104490d..24c250d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,6 +46,10 @@ pub struct Google { #[config(default = false)] pub local_auth_redirect: bool, + /// Decides if the auth-code should be stored in a file or be read by stdin + #[config(default = true)] + pub use_file_auth_response: bool, + /// The frequency for reading the auth file in seconds #[config(default = 10)] pub auth_file_read_frequency: u64, diff --git a/tests/test_data/simple.toml b/tests/test_data/simple.toml index b080ed7..7ac93d2 100644 --- a/tests/test_data/simple.toml +++ b/tests/test_data/simple.toml @@ -57,6 +57,11 @@ client_secret = "YOUR_CLIENT_SECRET_HERE" # Default value: false #local_auth_redirect = false +# Decides if the auth-code should be stored in a file or be read by stdin +# +# Default value: true +#use_file_auth_response = true + # The frequency for reading the auth file in seconds # # Default value: 10