aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
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()
+}