pub mod remove_remote;
pub mod sync_up;
pub mod sync_down;
+pub mod status;
pub mod version;
pub mod help;
+
use std::io::Result;
use add::Add;
use sync_up::SyncUp;
use sync_down::SyncDown;
use version::Version;
+use status::Status;
use help::Help;
+use crate::configuration::Configuration;
+
pub trait Command {
fn before_dependencies(&self) -> Vec<Box<dyn Command>>;
- fn execute(&self, input: Option<&String>) -> Result<()>;
+ fn execute(&self, input: Option<&String>, configuration: &Configuration, command: &String) -> Result<()>;
fn after_dependencies(&self) -> Vec<Box<dyn Command>>;
fn command(&self) -> &'static str;
fn help(&self) -> &'static str;
Box::new(RemoveRemote::new()),
Box::new(SyncUp::new()),
Box::new(SyncDown::new()),
+ Box::new(Status::new()),
Box::new(Version::new()),
Box::new(Help::new())
]