Commit graph

10 commits

Author SHA1 Message Date
Brett Smith
27dbe14b94 config: Accept a source date for displaying rates.
For output formats that can show both a cost and a price,
this will be used to distinguish them.
2020-05-16 14:17:29 -04:00
Brett Smith
9b6d562d46 tests: Stop calling fixtures directly.
Avoid deprecation warnings from pytest.
2020-05-06 14:48:27 -04:00
Brett Smith
d0f5f1547c config: Error out when historical arguments are ambiguous. 2017-06-29 17:18:47 -04:00
Brett Smith
8ab2373ba1 config: Assume abbreviated dates are in the past. 2017-06-22 15:54:24 -04:00
Brett Smith
936237eceb config: Nicer determination of default currency for converting/signing.
base defaults to USD more as an API restriction than anything else, so avoid
using it as a default setting.  Instead, use the user's books denomination
or locale setting.
2017-06-09 13:22:12 -04:00
Brett Smith
baa2e883cd config: historical command accepts just two currency arguments.
This shows the rates between two currencies without converting a specific
amount.
2017-06-09 13:11:16 -04:00
Brett Smith
385a492ae7 config: More flexible date parsing.
* Accept partial dates, filling in the current year and month as needed.
* Accept more separators.
2017-06-08 09:52:47 -04:00
Brett Smith
18f7ea7038 Configuration: Set up CacheWriter. 2017-05-17 12:29:50 -04:00
Brett Smith
08073f752b Configuration: Parse more conversion arguments for historical subcommand. 2017-05-17 11:32:05 -04:00
Brett Smith
0120e4ce5a config: Begin Configuration class. 2017-05-16 09:19:37 -04:00