Jeremiah Russell
2fa7cd21ab
♻️ refactor(rules): remove credentials config
...
- remove unused credentials configuration
- remove credentials file setting/getting logic
- rename config file to rules.toml
2025-10-15 14:30:07 +01:00
Jeremiah Russell
5905a6fb54
♻️ refactor(cli): remove config from run args
...
- remove config from run args to load inside functions
- load credential.json directly instead of config file
2025-10-15 14:03:08 +01:00
Jeremiah Russell
0bc71f5b75
♻️ refactor: rename Config to Rules
...
- rename Config struct to Rules to better reflect its purpose
- update all references to Config to Rules
2025-10-15 12:39:20 +01:00
Jeremiah Russell
3beab7d82d
♻️ refactor(cli): restructure cli commands for better organization
...
- rename `label_cli.rs` to `labels_cli.rs`
- rename `message_cli.rs` to `messages_cli.rs`
- move config related commands to `rules config` subcommand
- introduce `rules run` subcommand
2025-10-15 11:00:14 +01:00
Jeremiah Russell
f9e86bf8d9
♻️ refactor(cli): rename run_cli to rules_cli
...
- rename run_cli files to rules_cli
- reflect changes in module imports and subcommand names
2025-10-14 17:10:21 +01:00
Jeremiah Russell
f7db97dd07
♻️ refactor(cli): consolidate message handling and remove delete command
...
- 【Refactor】: Move `set_parameters` function from `Message` trait implementation for `DeleteCli` to `MessageCli` to avoid duplication.
- 【Feature】: Add `Delete` action to `MessageAction` enum to allow direct deletion of messages.
- 【Cleanup】: Remove `delete_cli.rs` and `message_trait.rs` as their functionalities are now integrated into `message_cli.rs`.
2025-10-14 17:10:21 +01:00
Jeremiah Russell
f3a1edaf1f
♻️ refactor(cli): refactor message handling and remove trash command
...
- 【Refactor】: Moved trash functionality into the message subcommand for better organization.
- 【Refactor】: Removed the separate `trash_cli` module.
- 【Feature】: Added a `Trash` action to the `MessageAction` enum.
- 【Refactor】: Modified `MessageCli::run` to handle the new `Trash` action.
2025-10-14 17:10:21 +01:00
Jeremiah Russell
1052eeb22e
✨ feat(cli): enhance cli subcommand ordering and grouping
...
- improve subcommand organization for better user experience
- implement display_order attribute for logical ordering of subcommands
- introduce next_help_heading for grouping subcommands under meaningful titles
2025-10-14 17:10:21 +01:00
Jeremiah Russell
7e1d07b3ab
✨ feat(cli): add message trait for cli subcommands
...
- introduce a trait to handle message-related operations
- implement the trait for config, delete, label, message, run, and trash subcommands
2025-10-14 07:41:39 +01:00
Jeremiah Russell
5331551eea
♻️ refactor(cli): use mutable client for subcommands
...
- change `client` to mutable to allow modification in subcommands
- update subcommands to use the mutable `client`
2025-10-14 07:41:39 +01:00
Jeremiah Russell
88fbf74587
♻️ refactor(cli): use client for trash subcommand
...
- use the api client for the trash subcommand
2025-10-14 07:41:39 +01:00
Jeremiah Russell
f79fd2d48c
♻️ refactor(cli): pass client to run command
...
- pass client to run command to enable api calls
2025-10-14 07:41:39 +01:00
Jeremiah Russell
9bdb559104
♻️ refactor(cli): use client instance for message subcommand
...
- use client instance for message subcommand to avoid redundant credential file access
2025-10-14 07:41:39 +01:00
Jeremiah Russell
704b2b023e
🐛 fix(cli): fix delete command
...
- pass the client to the delete command
2025-10-14 07:41:39 +01:00
Jeremiah Russell
04478a13f8
♻️ refactor(cli): use gmail client for label operations
...
- replace credential file with gmail client for label operations
- use gmail client to list labels
2025-10-14 07:41:39 +01:00
Jeremiah Russell
6a7c67cffc
♻️ refactor(cli): inject config into run command
...
- inject config into run command for better access to settings
2025-10-11 09:35:12 +01:00
Jeremiah Russell
a1015d9837
✨ feat(cli): add run command to execute rules
...
- introduce `run` subcommand to trigger rule execution
- implement `RunCli` struct and logic for rule processing
2025-10-11 09:35:12 +01:00
Jeremiah Russell
bca235a2e7
✨ feat(cli): add delete subcommand
...
- introduce delete_cli module for handling message deletion
- implement delete subcommand to permanently remove messages
- refactor subcommands to use non-optional enum for improved handling
2025-10-09 22:45:24 +01:00
Jeremiah Russell
0e4f4c6fef
♻️ refactor(cli): move main.rs to cli folder
...
- move main.rs to cli folder for better structure
2025-10-09 17:03:04 +01:00