Skip to content

Commit

Permalink
fix: alias enable/enabled in settings (#2021)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie committed May 14, 2024
1 parent 7672286 commit 58f0bd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/atuin-client/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions crates/atuin-client/src/settings/dotfiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone, Default)]
pub struct Settings {
#[serde(alias = "enable")]
pub enabled: bool,
}
1 change: 1 addition & 0 deletions crates/atuin-server/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 58f0bd6

Please sign in to comment.