summaryrefslogtreecommitdiffstats
path: root/crates/common/tedge_config/src/models
diff options
context:
space:
mode:
authorinitard <solo@softwareag.com>2022-02-25 13:13:46 +0000
committerinitard <solo@softwareag.com>2022-03-04 10:48:34 +0000
commit1139e7bd1f5774fe426b880fb57cf7938225bacf (patch)
tree2575c603c8a8f959be975510e10b33c9f114178a /crates/common/tedge_config/src/models
parent15e59352f97fc79be3544155a7089f16c26a8656 (diff)
configurable run path (#858)
- added logs.path to `tedge` command - can now use `tedge config set run.path /some/run/path` - agent and mapper use the run config Signed-off-by: initard <solo@softwareag.com>
Diffstat (limited to 'crates/common/tedge_config/src/models')
-rw-r--r--crates/common/tedge_config/src/models/file_path.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/common/tedge_config/src/models/file_path.rs b/crates/common/tedge_config/src/models/file_path.rs
index 29f8a415..62ef5723 100644
--- a/crates/common/tedge_config/src/models/file_path.rs
+++ b/crates/common/tedge_config/src/models/file_path.rs
@@ -44,3 +44,9 @@ impl std::fmt::Display for FilePath {
write!(f, "{}", self.0.display())
}
}
+
+impl Into<PathBuf> for FilePath {
+ fn into(self) -> PathBuf {
+ PathBuf::from(self.0)
+ }
+}