5 pub mod publish_archive;
16 use generate::Generate;
19 use publish_archive::PublishArchive;
20 use add_remote::AddRemote;
21 use remove_remote::RemoveRemote;
23 use sync_down::SyncDown;
28 fn before_dependencies(&self) -> Vec<Box<dyn Command>>;
29 fn execute(&self, input: Option<&String>) -> Result<()>;
30 fn after_dependencies(&self) -> Vec<Box<dyn Command>>;
31 fn command(&self) -> &'static str;
32 fn help(&self) -> &'static str;
35 pub fn available_commands() -> Vec<Box<dyn Command>> {
38 Box::new(Generate::new()),
39 Box::new(Update::new()),
40 Box::new(Publish::new()),
41 Box::new(PublishArchive::new()),
42 Box::new(AddRemote::new()),
43 Box::new(RemoveRemote::new()),
44 Box::new(SyncUp::new()),
45 Box::new(SyncDown::new()),
46 Box::new(Version::new()),