feat: Add CLI table formatting and remove unused inspection methods
- Enhanced CLI output with table formatting for better readability of account and transaction data - Added new commands to list accounts and view their sync status - Added new commands to inspect transaction information and cache status - Cleaned up internal code by removing unused trait methods and implementations - Updated documentation with examples of new CLI commands This improves the user experience with clearer CLI output and new inspection capabilities while maintaining code quality.
This commit is contained in:
15
README.md
15
README.md
@@ -44,11 +44,17 @@ cargo run -p banks2ff -- sync gocardless firefly --start 2023-01-01 --end 2023-0
|
||||
cargo run -p banks2ff -- sources
|
||||
cargo run -p banks2ff -- destinations
|
||||
|
||||
# Inspect accounts
|
||||
cargo run -p banks2ff -- accounts list
|
||||
cargo run -p banks2ff -- accounts status
|
||||
|
||||
# Manage account links
|
||||
cargo run -p banks2ff -- accounts link list
|
||||
cargo run -p banks2ff -- accounts link create <source_account> <dest_account>
|
||||
|
||||
# Additional inspection commands available in future releases
|
||||
# Inspect transactions and cache
|
||||
cargo run -p banks2ff -- transactions list <account_id>
|
||||
cargo run -p banks2ff -- transactions cache-status
|
||||
```
|
||||
|
||||
## 🖥️ CLI Structure
|
||||
@@ -58,9 +64,12 @@ Banks2FF uses a structured command-line interface with the following commands:
|
||||
- `sync <SOURCE> <DESTINATION>` - Synchronize transactions between source and destination
|
||||
- `sources` - List all available source types
|
||||
- `destinations` - List all available destination types
|
||||
- `accounts list` - List all discovered accounts
|
||||
- `accounts status` - Show sync status for all accounts
|
||||
- `accounts link` - Manage account links between sources and destinations
|
||||
|
||||
Additional inspection commands (accounts list/status, transactions, status) will be available in future releases.
|
||||
- `transactions list <account_id>` - Show transaction information for a specific account
|
||||
- `transactions cache-status` - Display cache status and statistics
|
||||
- `transactions clear-cache` - Clear transaction cache (implementation pending)
|
||||
|
||||
Use `cargo run -p banks2ff -- --help` for detailed command information.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user