Run definition over creation

This commit is contained in:
2023-05-29 23:41:21 -04:00
parent 9be5bebf78
commit 87fa949309
3 changed files with 11 additions and 15 deletions

View File

@@ -24,6 +24,7 @@ impl std::fmt::Display for Host {
}
impl Host {
// todo: validate ssh config
pub fn edit(&mut self) -> Result<Self> {
let mut data = toml::to_string_pretty(self)?;