diff options
| author | mo8it <mo8it@proton.me> | 2024-04-16 03:30:28 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-16 03:30:28 +0200 |
| commit | aa813fbce1305bb1beac88bff47f4279948cb3ac (patch) | |
| tree | a97242ca9b1bb900c882a8fbde075b07b60f6c68 /src/dev.rs | |
| parent | d1ebbaa6f610ec492422806beb34e0dc7e4fc466 (diff) | |
Update Cargo.toml on `dev check`
Diffstat (limited to 'src/dev.rs')
| -rw-r--r-- | src/dev.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,8 @@ use anyhow::{Context, Result}; use clap::Subcommand; +use crate::info_file::InfoFile; + mod check; mod init; @@ -11,10 +13,10 @@ pub enum DevCommands { } impl DevCommands { - pub fn run(self) -> Result<()> { + pub fn run(self, info_file: InfoFile) -> Result<()> { match self { DevCommands::Init => init::init().context(INIT_ERR), - DevCommands::Check => check::check(), + DevCommands::Check => check::check(info_file), } } } |
