diff options
| author | [object Object] <max@bossi.ng> | 2025-07-29 16:52:39 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-29 16:52:39 +0200 | 
| commit | 5b2e7756e808151b5487f7e67b53accc745bee07 (patch) | |
| tree | b4b603501db9f659ff237cb1536c1e1c5759b793 /src/config.rs | |
| parent | 9c161a33c576b4ccb5908305b19c8e3e252e3a18 (diff) | |
* refactor: move platform-specifics into separate module
* feat: Windows Support (wip)
This is untested because I do not own Windows machines, and I think
there are some problems concerning unlinking.
* wip: inplementation of platform-agnostic deploying and removing etc...
* feat: host-based deployment condition
* feat: command flag to skip hostname checks
* simplyfing the whole preparation step quite a bit
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/src/config.rs b/src/config.rs index 6fed687..4be977b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -16,6 +16,8 @@ pub struct Dot {      pub source: PathBuf,      #[serde(rename = "dest")]      pub destination: PathBuf, +    #[serde(default = "default_host")] +    pub host: String,  }  pub enum ConfigLoadError { @@ -42,3 +44,6 @@ fn default_dots_dir() -> PathBuf {      env::current_dir().expect("failed to get current dir")  } +fn default_host() -> String { +    "*".to_string() +} | 
