more tests, splitting input handling and logic

This commit is contained in:
Pablo Martin 2024-06-06 18:02:43 +02:00
parent afe9e18e0d
commit 46988352ca
4 changed files with 34 additions and 31 deletions

View file

@ -55,4 +55,4 @@ The output file will follow this schema:
A few more details:
- Running `get-rates` with an `end-date` beyond the current date will ignore the future dates. The run will behave as if you had specified today as the `end-date`.
- Any run that requires more than 1,000 API calls will prompt the user for confirmation. We do this to avoid accidentally running massive exports against the API due to human errors, since we have a monthly cap on the usage of xe.com's API.
- Trying to place an `end-date` before a `start-date` will cause an exception.