zephyrfs-cli Public
| 1 | mod init; |
| 2 | mod join; |
| 3 | mod upload; |
| 4 | mod download; |
| 5 | mod list; |
| 6 | mod status; |
| 7 | |
| 8 | pub use init::InitCommand; |
| 9 | pub use join::JoinCommand; |
| 10 | pub use upload::UploadCommand; |
| 11 | pub use download::DownloadCommand; |
| 12 | pub use list::ListCommand; |
| 13 | pub use status::StatusCommand; |
| 14 | |
| 15 | use anyhow::Result; |
| 16 | use crate::config::Config; |
| 17 | |
| 18 | #[async_trait::async_trait] |
| 19 | pub trait Command { |
| 20 | async fn execute(&self, config: &Config) -> Result<()>; |
| 21 | } |