chore: Move all command handlers to their own files

This makes the code much easier to follow and shortens main.rs from
>1000 lines to around 150.
This commit is contained in:
2025-11-29 00:54:46 +01:00
parent 095e15cd5f
commit 5f54124015
19 changed files with 1057 additions and 918 deletions

View File

@@ -186,6 +186,20 @@ After making ANY code change, you MUST run these commands and fix any issues:
- **firefly/**: Firefly III API integration
- Each adapter implements the appropriate port trait
### Commands Module (`banks2ff/src/commands/`)
- **sync.rs**: Sync command handler
- **accounts/**: Account management commands
- **mod.rs**: Account command dispatch
- **link.rs**: Account linking logic and LinkCommands dispatch
- **list.rs**: Account listing handler
- **status.rs**: Account status handler
- **transactions/**: Transaction management commands
- **mod.rs**: Transaction command dispatch
- **list.rs**: Transaction listing handler
- **cache.rs**: Cache status handler
- **clear.rs**: Cache clearing handler
- **list.rs**: Source/destination listing handler
### Client Libraries
- **gocardless-client/**: Standalone GoCardless API wrapper
- **firefly-client/**: Standalone Firefly III API wrapper