feat(reset): introduce reset and fix ROOT_PATH
This commit is contained in:
17
src/subcommands/reset.rs
Normal file
17
src/subcommands/reset.rs
Normal 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(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user