12 pub fn new() -> Self {
17 impl super::Command for Add {
18 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
19 vec![Box::new(SyncDown::new())]
22 fn execute(&self, input: Option<&String>) -> Result<()> {
23 println!("Add: {:?}!", input);
27 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
29 Box::new(Update::new()),
30 Box::new(Generate::new()),
31 Box::new(SyncUp::new())
35 fn command(&self) -> &'static str {
39 fn help(&self) -> &'static str {
40 "<path_to_post>\t\t\tCreates new blog post"