♻️ refactor(cli): rename config_cli to rules_cli
- rename config_cli to rules_cli for better clarity - rename ConfigCommands to RulesCommands for better clarity - rename ConfigCli to RulesCli for better clarity
This commit is contained in:
committed by
Jeremiah Russell
parent
39da683fc0
commit
33027a6c34
@@ -1,35 +0,0 @@
|
||||
use clap::{Parser, Subcommand};
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
pub struct ConfigCli {
|
||||
/// Configuration commands
|
||||
#[command(subcommand)]
|
||||
command: ConfigCommands,
|
||||
}
|
||||
|
||||
impl ConfigCli {
|
||||
pub fn run(&self) {
|
||||
match self.command {
|
||||
ConfigCommands::List => todo!(),
|
||||
ConfigCommands::Add => todo!(),
|
||||
ConfigCommands::Remove => todo!(),
|
||||
ConfigCommands::Update => todo!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Subcommand)]
|
||||
pub enum ConfigCommands {
|
||||
/// List the rules configured and saved in the config file
|
||||
#[clap(name = "list")]
|
||||
List,
|
||||
/// Add a rules to the config file
|
||||
#[clap(name = "add")]
|
||||
Add,
|
||||
/// Remove a rule from the config file
|
||||
#[clap(name = "remove", alias = "rm")]
|
||||
Remove,
|
||||
/// Update a rule in the config file
|
||||
#[clap(name = "update")]
|
||||
Update,
|
||||
}
|
||||
Reference in New Issue
Block a user