summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-04 09:16:06 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-04 09:33:28 +0200
commit5c8d79d1fa6a6e6f6174558c2d6484683fa37c77 (patch)
tree7ea950ecae3a1d13716ed397260f2bb576076925 /src/config.rs
parentbccad77273048aae6be22bf09264ca6c6fd4225b (diff)
downloadvmadm-5c8d79d1fa6a6e6f6174558c2d6484683fa37c77.tar.gz
feat: configurable image_directory where VM images go by default
Also, specification file doesn't need to specify an image file anymore. Instead the image will be named after the VM and put into the image directory named in the configuration.
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 9ba4a7f..dd6c2d7 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -7,6 +7,7 @@ use std::path::{Path, PathBuf};
#[derive(Default, Debug, Deserialize)]
pub struct Configuration {
pub default_base_image: Option<PathBuf>,
+ pub image_directory: Option<PathBuf>,
}
#[derive(Debug, thiserror::Error)]