5 pub mod publish_archive;
18 use generate::Generate;
21 use publish_archive::PublishArchive;
22 use add_remote::AddRemote;
23 use remove_remote::RemoveRemote;
25 use sync_down::SyncDown;
31 fn before_dependencies(&self) -> Vec<Box<dyn Command>>;
32 fn execute(&self, input: Option<&String>) -> Result<()>;
33 fn after_dependencies(&self) -> Vec<Box<dyn Command>>;
34 fn command(&self) -> &'static str;
35 fn help(&self) -> &'static str;
38 pub fn available_commands() -> Vec<Box<dyn Command>> {
41 Box::new(Generate::new()),
42 Box::new(Update::new()),
43 Box::new(Publish::new()),
44 Box::new(PublishArchive::new()),
45 Box::new(AddRemote::new()),
46 Box::new(RemoveRemote::new()),
47 Box::new(SyncUp::new()),
48 Box::new(SyncDown::new()),
49 Box::new(Status::new()),
50 Box::new(Version::new()),