Commit Graph

9338 Commits

Author SHA1 Message Date
Simon Michael
26dc66e118 ;check: doc updates 2020-11-30 08:49:10 -08:00
Simon Michael
e983380098 ;update manuals 2020-11-30 08:41:40 -08:00
Simon Michael
679373c835 ;update CLI usage texts 2020-11-30 08:41:21 -08:00
Simon Michael
a5adc14aaa ;check: doc updates 2020-11-30 08:41:07 -08:00
Simon Michael
090e810761 check: rename ordereddates, uniqueleafnames 2020-11-30 08:26:48 -08:00
Simon Michael
4dba59b0a1 ;check: doc updates 2020-11-30 08:26:16 -08:00
Simon Michael
16a212af57 ;update manuals 2020-11-29 21:21:50 -08:00
Simon Michael
4db9ec1e79 ;update CLI usage texts 2020-11-29 21:21:29 -08:00
Simon Michael
a0907e6567 check: doc 2020-11-29 21:21:20 -08:00
Simon Michael
e33667f580 check: support quoted check name + args
A "hledger check" argument may now be a quoted string containing
the check name followed by space-separated arguments, for
checks which make use of those. This means the check command
can replicate "check-dates --unique" and (in principle)
"check-fancyassertions ASSERTIONS..". Eg:

hledger check "dates --unique"

I think it'll be better for checks to take no arguments or options,
so this is probably just a transitional feature for compatibility.
2020-11-29 20:48:31 -08:00
Simon Michael
78542ca32e check-dates: rename --strict to --unique; improve output 2020-11-29 15:28:14 -08:00
Simon Michael
c5b0eab37a ;cli: slightly clearer message for this unlikely error case 2020-11-29 13:37:30 -08:00
Simon Michael
19f257621c ;cli: commands list: descriptions for tagfiles & fancyassertions addons 2020-11-29 13:36:24 -08:00
Simon Michael
724fb9961d check: new command incorporating check-dates, check-dupes, etc.
This is intended to work in three modes:

- hledger check: just run the standard data checks, like all other
commands but with no output on success. Equivalent to
hledger stats >/dev/null but simpler and platform-independent.

- hledger check --strict: run the standard + strict data checks,
like other commands in strict mode.

- hledger check CHECK1 CHECK2 ...: run the named checks. This allows
running more or less checks than the default or strict mode, or
a single check of interest. The arguments are standard lowercase names
for the checks. For now this command supports two checks: "dates" and
"leafnames". These are equivalent to the check-dates and check-dupes
commands which are now hidden and considered deprecated, though
still supported for the moment.

This command needs more work and I'm rushing it a little, but I think
it's the right direction and I'd like to put it out there to get
feedback.
2020-11-29 13:27:35 -08:00
Simon Michael
325a155f0b check-dates: on success, be silent and don't force program exit 2020-11-29 13:24:33 -08:00
Simon Michael
cd7156013d check-dupes: return a non-zero exit code on failure 2020-11-29 13:24:14 -08:00
Simon Michael
ee026f5442 Revert the rename of check-dupes
We'll keep the old name, soon to be a hidden command, for compatibility.
2020-11-28 15:32:07 -08:00
Simon Michael
8c23a16bf8 journal: strict mode also requires commodity declarations 2020-11-27 17:54:55 -08:00
Simon Michael
d9b4446837 ;check-leafnames: fix, one more rename 2020-11-27 13:23:04 -08:00
Simon Michael
d330c4910e check-dupes: rename to check-leafnames, per "How to check for errors" 2020-11-27 12:51:41 -08:00
Simon Michael
1b6f8e0b19 bin: rename hledger-check* per "How to check for errors" 2020-11-27 12:29:54 -08:00
Simon Michael
af15a5d0c8 ; doc: journal: link 2020-11-27 09:05:23 -08:00
Simon Michael
3bfe53dd50 doc: strict mode links 2020-11-27 08:57:41 -08:00
Simon Michael
d40d53ae02 ;update manuals 2020-11-26 08:52:56 -08:00
Simon Michael
ec3ad14ae5 strict mode: -s/--strict requires posted accounts to be declared 2020-11-26 08:48:16 -08:00
Simon Michael
ea0d4901ab lib: journalApplyAliases performance tweak 2020-11-25 21:06:31 -08:00
Simon Michael
0dc8eca68a lib: remove partial code from journalApplyAliases etc. 2020-11-25 21:06:31 -08:00
Simon Michael
794c5f32a5 ;update changelogs 2020-11-24 09:39:05 -08:00
Simon Michael
255d475380 ;update manuals 2020-11-24 09:23:58 -08:00
Simon Michael
982486e5d2 ;update CLI usage texts 2020-11-24 09:23:47 -08:00
Simon Michael
94b3f090be csv, timedot, timeclock: respect --alias options (fix #859)
Command-line account aliases now also affect transactions read
from these formats (not just journal format).

lib: journalApplyAliases, transactionApplyAliases, postingApplyAliases
helpers have been added.
2020-11-24 09:17:01 -08:00
Simon Michael
9b9f2543d8 ;lib: regexReplace: note the kind of RegexError still possible 2020-11-24 09:16:08 -08:00
Simon Michael
221a6d9001 lib: new more robust price lookup implementation, fixing #1402 2020-11-23 18:08:41 -08:00
Simon Michael
13e3e7607e ;cli: update example in Cli.Main haddock 2020-11-23 10:05:53 -08:00
Simon Michael
d60c1f764d lib: partial valuation fix, more debug output for #1402 2020-11-22 13:10:31 -08:00
Simon Michael
5eb69785e5 ;ci: fix missing changes for moved tests 2020-11-22 09:48:46 -08:00
Simon Michael
6847f0e6a8 ; lib: valuation: add a commented test for #1402 2020-11-21 07:35:32 -08:00
Simon Michael
16f12d8263 ;bal: budget: improve doc 2020-11-20 17:20:50 -08:00
Simon Michael
322d62483e ;bal: budget: heading type 2020-11-20 17:05:48 -08:00
Simon Michael
adc9bf94bc ;bal: budget: document a start date gotcha 2020-11-20 17:04:24 -08:00
Simon Michael
126bb44eec ;examples: update some budget examples 2020-11-20 16:53:08 -08:00
Simon Michael
654ab4243a ; comments 2020-11-20 16:45:40 -08:00
Simon Michael
6948b05db6 ;bal: budget: add tests clarifying a surprising behaviour 2020-11-19 15:15:04 -08:00
Simon Michael
4a74680a22 ;lib: rename some budget report helpers
The new names are of course verbose, but more consistent and revealing.
2020-11-19 14:59:08 -08:00
Simon Michael
372c9724a8 bal: improve budget, MultiBalanceReport debug output
Comply with debug levels policy, clarify some labels.
2020-11-19 14:42:46 -08:00
Simon Michael
b6c667c388 ;update manuals 2020-11-19 09:19:20 -08:00
Simon Michael
0295be5553 ;update CLI usage texts 2020-11-19 09:19:12 -08:00
Dmitry Astapov
d53dc46a5a roi: docs 2020-11-19 09:17:28 -08:00
Dmitry Astapov
c0582ec895 roi: TWR now handles samy-day pnl changes and cashflows 2020-11-19 09:17:28 -08:00
Simon Michael
3afd52248b ;roi: document calculation failures 2020-11-19 09:17:28 -08:00