feat(reset): introduce reset and fix ROOT_PATH

This commit is contained in:
grimhilt
2024-09-08 17:59:22 +02:00
parent bc6a23b76b
commit baeef1a33a
15 changed files with 178 additions and 52 deletions

17
src/subcommands/reset.rs Normal file
View File

@@ -0,0 +1,17 @@
use clap::{Arg, ArgAction, ArgMatches, Command};
use crate::commands;
use crate::commands::reset::ResetArgs;
use crate::config::config::Config;
pub fn create() -> Command {
Command::new("reset")
.about("Clear the index")
}
pub fn handler(args: &ArgMatches) {
commands::reset::exec(
ResetArgs {},
Config::new(),
);
}