summaryrefslogtreecommitdiff
path: root/src/dev.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-17 15:55:50 +0200
committermo8it <mo8it@proton.me>2024-04-17 15:55:50 +0200
commit501b973c258a3c2e3a463d58c16402302184380f (patch)
treea03812f5d3f5a5ef9e171077fb6aa6571a3f31fb /src/dev.rs
parent30636e7cf345757f95235744ff81376ae81c9aa2 (diff)
Add "dev update"
Diffstat (limited to 'src/dev.rs')
-rw-r--r--src/dev.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dev.rs b/src/dev.rs
index 7905f38..feca99e 100644
--- a/src/dev.rs
+++ b/src/dev.rs
@@ -1,22 +1,23 @@
use anyhow::{Context, Result};
use clap::Subcommand;
-use crate::info_file::InfoFile;
-
mod check;
mod init;
+mod update;
#[derive(Subcommand)]
pub enum DevCommands {
Init,
Check,
+ Update,
}
impl DevCommands {
- pub fn run(self, info_file: InfoFile) -> Result<()> {
+ pub fn run(self) -> Result<()> {
match self {
DevCommands::Init => init::init().context(INIT_ERR),
- DevCommands::Check => check::check(info_file),
+ DevCommands::Check => check::check(),
+ DevCommands::Update => update::update(),
}
}
}