diff options
Diffstat (limited to 'src/config/yaml.rs')
-rw-r--r-- | src/config/yaml.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/config/yaml.rs b/src/config/yaml.rs index 70a5a17..e0c7e87 100644 --- a/src/config/yaml.rs +++ b/src/config/yaml.rs @@ -78,6 +78,12 @@ pub struct Shell { pub finder_command: Option<String>, } +#[derive(Deserialize, Debug)] +#[serde(default)] +pub struct Client { + pub tealdeer: bool, +} + #[derive(Deserialize, Default, Debug)] #[serde(default)] pub struct YamlConfig { @@ -86,6 +92,7 @@ pub struct YamlConfig { pub cheats: Cheats, pub search: Search, pub shell: Shell, + pub client: Client, } impl YamlConfig { @@ -162,3 +169,11 @@ impl Default for Shell { } } } + +impl Default for Client { + fn default() -> Self { + Self { + tealdeer: false, + } + } +} |