This commit is contained in:
ByteDream 2022-12-07 00:39:32 +01:00
parent 4cd46f19ac
commit 91f8a82ca4
3 changed files with 12 additions and 3 deletions

View file

@ -16,7 +16,9 @@ pub use cli::{archive::Archive, download::Download, login::Login};
#[async_trait::async_trait(?Send)]
trait Execute {
fn pre_check(&self) -> Result<()> { Ok(()) }
fn pre_check(&self) -> Result<()> {
Ok(())
}
async fn execute(self, ctx: Context) -> Result<()>;
}