mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-28 19:23:47 +01:00
fix: alias enable/enabled in settings (#2021)
This commit is contained in:
parent
7672286814
commit
58f0bd61e6
@ -346,6 +346,7 @@ pub struct Preview {
|
||||
pub struct Daemon {
|
||||
/// Use the daemon to sync
|
||||
/// If enabled, requires a running daemon with `atuin daemon`
|
||||
#[serde(alias = "enable")]
|
||||
pub enabled: bool,
|
||||
|
||||
/// The daemon will handle sync on an interval. How often to sync, in seconds.
|
||||
|
@ -2,5 +2,6 @@ use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
|
||||
pub struct Settings {
|
||||
#[serde(alias = "enable")]
|
||||
pub enabled: bool,
|
||||
}
|
||||
|
@ -104,6 +104,7 @@ pub fn example_config() -> &'static str {
|
||||
|
||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||
pub struct Tls {
|
||||
#[serde(alias = "enabled")]
|
||||
pub enable: bool,
|
||||
|
||||
pub cert_path: PathBuf,
|
||||
|
Loading…
Reference in New Issue
Block a user