diff options
| author | YummyOreo <bobgim20@gmail.com> | 2024-05-12 21:35:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-13 09:35:34 +0700 |
| commit | ce67e527722cadd4ed7341a3e5d433beb62887f6 (patch) | |
| tree | 41ff5ccc9d6857d1d4173a0a61f99174b644cb9e /crates/atuin-client/src/settings.rs | |
| parent | fix: add incremental rebuild to daemon loop (#2010) (diff) | |
| download | atuin-ce67e527722cadd4ed7341a3e5d433beb62887f6.zip | |
feat(daemon): add support for daemon on windows (#2014)
* fix: gracefully exit on windows
* feat(daemon): tcp support for windows
* feat(daemon): add tcp port configuration
* fix: logging and fix compiler error
* docs: add build dependency to the readme
fix(docs): move a line up
* fix: missing field error
* docs: adds the daemon section to the default config
* fix: clippy and fmt
* feat: Update README.md
Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
* refactor: changes tcp port and other stuff as per request
* fix(config): update default tcp port in example config
* fix: complier error on unix
* refactor: make the cfg stuff look better
---------
Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
Diffstat (limited to 'crates/atuin-client/src/settings.rs')
| -rw-r--r-- | crates/atuin-client/src/settings.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs index ad7f95fc..ed1c0a29 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs @@ -353,6 +353,9 @@ pub struct Daemon { /// The path to the unix socket used by the daemon pub socket_path: String, + + /// The port that should be used for TCP on non unix systems + pub tcp_port: u64, } impl Default for Preview { @@ -369,6 +372,7 @@ impl Default for Daemon { enabled: false, sync_frequency: 300, socket_path: "".to_string(), + tcp_port: 8889, } } } @@ -706,6 +710,7 @@ impl Settings { .set_default("daemon.sync_frequency", 300)? .set_default("daemon.enabled", false)? .set_default("daemon.socket_path", socket_path.to_str())? + .set_default("daemon.tcp_port", 8889)? .set_default( "prefers_reduced_motion", std::env::var("NO_MOTION") |
