summaryrefslogtreecommitdiff
path: root/src/dev.rs
diff options
context:
space:
mode:
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),
}
}
}