summaryrefslogtreecommitdiff
path: root/src/dev.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-16 03:30:28 +0200
committermo8it <mo8it@proton.me>2024-04-16 03:30:28 +0200
commitaa813fbce1305bb1beac88bff47f4279948cb3ac (patch)
treea97242ca9b1bb900c882a8fbde075b07b60f6c68 /src/dev.rs
parentd1ebbaa6f610ec492422806beb34e0dc7e4fc466 (diff)
Update Cargo.toml on `dev check`
Diffstat (limited to 'src/dev.rs')
-rw-r--r--src/dev.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dev.rs b/src/dev.rs
index e09996f..7905f38 100644
--- a/src/dev.rs
+++ b/src/dev.rs
@@ -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),
}
}
}