use std::io::Result;
+use super::{sync_down::SyncDown, generate::Generate, sync_up::SyncUp};
pub struct Update;
impl super::Command for Update {
fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
- vec![]
+ vec![Box::new(SyncDown::new())]
}
fn execute(&self, input: Option<&String>) -> Result<()> {
}
fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
- vec![]
+ vec![
+ Box::new(Generate::new()),
+ Box::new(SyncUp::new())
+ ]
}
fn command(&self) -> &'static str {