now it gets gross ew
parent
41cab74028
commit
b949502869
|
|
@ -24,6 +24,10 @@ fn main() {
|
|||
_ => {},
|
||||
};
|
||||
|
||||
if flags.edit {
|
||||
db.edit().expect("failed to edit");
|
||||
}
|
||||
|
||||
db.save(flags.dry_run).expect("failed to save");
|
||||
}
|
||||
|
||||
|
|
@ -110,6 +114,10 @@ impl DB {
|
|||
result
|
||||
}
|
||||
|
||||
pub fn edit(&self) -> Result<(), String> {
|
||||
Err("not impl".to_string())
|
||||
}
|
||||
|
||||
pub fn save(&self, dry_run: bool) -> Result<(), String> {
|
||||
for i in &self.0 {
|
||||
i.save(dry_run)?;
|
||||
|
|
|
|||
Loading…
Reference in New Issue