Commit Graph

13 Commits

Author SHA1 Message Date
Jeremiah Russell
19513f51a9 🐛 fix(rules): fix config_cli.run to return a Result
- fix the config_cli.run function to return a Result to handle potential errors
2025-10-08 07:56:41 +01:00
Jeremiah Russell
bebf00acb4 ♻️ refactor(cli): restructure cli commands and config handling
- rename config cli to rules cli for better clarity
- move config loading to rules cli for better modularity
- update command matching to use the new rules cli
2025-10-08 06:42:29 +01:00
Jeremiah Russell
4390fe4c2d feat(cli): load configuration for message command
- load config file instead of hardcoding credential path
- create default config if not exist
2025-10-07 15:59:18 +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
Jeremiah Russell
2035dc7a85 feat(cli): add trash command
- Implement a new subcommand `trash` to move emails to trash.
- Introduce `trash_cli.rs` to handle the logic for selecting emails to move to  trash.
2025-10-06 10:38:30 +01:00
Jeremiah Russell
57ddb8da90 ♻️ refactor(cli): rename list subcommand to message
- rename list_cli module to message_cli
- rename ListCli struct to MessageCli
- update the command name from list to message
2025-10-04 07:09:58 +01:00
Jeremiah Russell
0fa5a21434 feat(cli): add label listing subcommand
- implement new `label` subcommand to list available Gmail labels
- create `label_cli` module to handle label listing logic
- integrate label listing into the main CLI application
2025-10-03 17:42:00 +01:00
Jeremiah Russell
c5f3ce4c47 📝 docs(logging): add future improvement note
- add a to-do comment to improve the logging filter functionality
2025-10-03 11:03:17 +01:00
Jeremiah Russell
cffa44d4d4 🐛 fix(main): exit process with error code on failure
- exit the process with a non-zero error code when the `run` function returns an error
- this ensures that the program signals failure to the operating system
- only log messages from `cull_gmail`
2025-10-02 16:46:51 +01:00
Jeremiah Russell
c30ee21411 ♻️ refactor(main): improve error handling and logging
- replace panics with proper error handling using `Result`
- enhance logging with error source information and initial log message
- adjust default log level to Info
2025-10-02 15:33:00 +01:00
Jeremiah Russell
af0ddab54a feat(cli): implement list subcommand
- add `list` subcommand using clap
- integrate google_gmail1 crate for Gmail API interaction
- add credential loading and authentication flow
2025-10-01 14:18:35 +01:00
Jeremiah Russell
334af3ba7f feat(cli): add command line interface with logging
- integrate clap for parsing command line arguments
- add verbosity flag for logging level control
- implement basic "list" subcommand structure
2025-09-30 11:13:17 +01:00
Jeremiah Russell
763da3145d feat(main): add initial main function with hello world
- create main.rs file
- implement basic main function with "hello world" output
2025-09-30 07:59:10 +01:00