Commit Graph

6 Commits

Author SHA1 Message Date
Jeremiah Russell
40ea9e52f4 ♻️ refactor(cli): rename command to sub_command for clarity
- rename `command` field to `sub_command` in `Cli` and `ConfigCli` structs
- rename `Commands` enum to `SubCmds` to reflect its role as subcommand
- update references to the renamed fields and enum variants
- this improves code readability and avoids confusion with other command concepts

🐛 fix(config): correct method name for setting eol action

- rename `set_command` to `set_action` in `EolRule` struct
- update references in `config.rs` to use the correct method name
- this fixes a bug where the eol action was not being set correctly
2025-10-09 14:30:21 +01:00
Jeremiah Russell
6b4f0bf214 feat(cli): add action subcommand
- implement action subcommand to set actions on rules
- create action_cli module to handle action-related commands
2025-10-09 14:12:41 +01:00
Jeremiah Russell
fb0a3cc640 feat(cli): implement commands dispatching
- add logic to dispatch commands to their respective handlers
- implement `run` method to handle different commands
2025-10-09 07:51:29 +01:00
Jeremiah Russell
098160ab78 feat(config): add cli config
- introduce cli config with clap
  - add subcommand rules and label
2025-10-09 07:26:19 +01:00
Jeremiah Russell
33027a6c34 ♻️ 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
2025-10-08 06:42:29 +01:00
Jeremiah Russell
782cfc4baf Merge branch 'implement-config-subcommand' of github.com:jerus-org/cull-gmail 2025-10-07 09:32:58 +01:00