diff options
| author | mo8it <mo8it@proton.me> | 2024-04-17 15:55:50 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-17 15:55:50 +0200 |
| commit | 501b973c258a3c2e3a463d58c16402302184380f (patch) | |
| tree | a03812f5d3f5a5ef9e171077fb6aa6571a3f31fb /src/dev.rs | |
| parent | 30636e7cf345757f95235744ff81376ae81c9aa2 (diff) | |
Add "dev update"
Diffstat (limited to 'src/dev.rs')
| -rw-r--r-- | src/dev.rs | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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(), } } } |
