Simon Michael
de5dfe2d1b
;update CLI usage texts
2021-01-10 15:35:48 -08:00
Simon Michael
0d418fc86e
;bal: update command docs ( #1441 )
2021-01-10 15:35:01 -08:00
Simon Michael
6931eec3ce
;check: uniqueleafnames: short circuit to avoid wasted work
2021-01-09 18:59:10 -08:00
Simon Michael
b96713a584
check: uniqueleafnames: fancy error message like the others
2021-01-09 18:54:33 -08:00
Simon Michael
e82e1db464
;check: ordereddates: fix double "Error"
2021-01-09 18:54:33 -08:00
Simon Michael
b15a634a44
;check: accept parseable/autobalanced/assertions as arguments, for completeness
2021-01-05 16:25:43 -08:00
Simon Michael
7510d99aec
check: accept case-insensitive prefixes as arguments
...
Might a bad idea, but avoiding wasteful typing..
2021-01-05 16:18:24 -08:00
Stephen Morgan
83110e8820
lib,cli: Extend AtThen valuation to all report types.
...
Also adds a postingDate argument to amountApplyValuation, and re-orders
the ValuationType and (Transaction/Posting) arguments to
(transaction/posting)ApplyValuation, to be consistent with
amountApplyValuation.
2021-01-05 14:42:09 -08:00
Stephen Morgan
5ba6215c47
cli: Remove redundant import, add some CPP.
2021-01-02 15:08:09 +11:00
Stephen Morgan
7d3cf1747a
lib: Make consistent naming scheme for showMixedAmount* functions,
...
add conversion between old API and new API in the documentation.
2021-01-02 15:08:09 +11:00
Stephen Morgan
e63138ef7d
lib,cli: Assorted fixes for older GHC.
2021-01-02 15:08:09 +11:00
Stephen Morgan
e4e533eb9f
lib,cli,ui: Replace some uses of String with Text, get rid of some unpacks, clean up showMixed options.
2021-01-02 15:08:09 +11:00
Stephen Morgan
07a7c3d3a8
lib: Use Text and Text builder only in postingAsLines.
2021-01-02 15:08:09 +11:00
Stephen Morgan
13c111da73
lib,cli,ui: Use WideBuilder for Tabular.AsciiWide.
...
Move WideBuilder to Text.WideString.
2021-01-02 15:08:09 +11:00
Stephen Morgan
b9c00dce61
lib,cli,ui: Implement all showMixed* functions in terms of DisplayAmountOpts and WideBuilder.
2021-01-02 15:08:09 +11:00
Stephen Morgan
f998a791cf
lib: Remove unused optional width argument for StringFormat.
2021-01-02 15:08:09 +11:00
Stephen Morgan
462a13cad7
lib,cli: Use Text Builder for Balance commands.
2021-01-02 15:08:09 +11:00
Stephen Morgan
089564b04b
lib,cli: Use Text for CompoundPeriodicReport titles.
2021-01-02 15:08:09 +11:00
Stephen Morgan
541c4fc18c
lib,cli: Use Text for CSV values.
2021-01-02 15:08:09 +11:00
Stephen Morgan
e3ec01c3c6
lib,cli,ui: Use Text for showDate and related.
2021-01-02 15:08:09 +11:00
Stephen Morgan
74b296f865
lib,cli: Make showTransaction return Text rather than String.
2021-01-02 15:08:09 +11:00
Stephen Morgan
dbe7015502
cli: Refactor compoundBalanceCommand.
2021-01-02 15:08:09 +11:00
Stephen Morgan
7e44b89bb4
lib: Remove unused label on TranspactionReport and AccountTransactionsReport.
2021-01-02 15:08:09 +11:00
Stephen Morgan
5752f1c5cb
lib,cli: Use Text Builder for Account Transaction Reports.
2021-01-02 15:08:09 +11:00
Stephen Morgan
b9dbed6713
cli: Use Text Builder for Entries Reports.
2021-01-02 15:08:09 +11:00
Stephen Morgan
12a6435c51
lib: Add wrap convenience function.
2021-01-02 15:08:09 +11:00
Stephen Morgan
646ee0bce5
cli: Using Text Builder for posting reports.
2021-01-02 15:08:09 +11:00
Simon Michael
ac39d59016
;check: doc: link to payee directive
2020-12-31 12:57:39 -08:00
Simon Michael
3898a66dda
;check: doc: wording
2020-12-31 12:40:46 -08:00
Simon Michael
c8eb347835
;check: no longer experimental
2020-12-31 12:17:48 -08:00
Simon Michael
2ffed3aec7
check: ordereddates: test --date2, clarify --unique and QUERY dropped
2020-12-31 11:43:51 -08:00
Simon Michael
bb1d49c573
;update CLI usage texts
2020-12-31 11:23:56 -08:00
Simon Michael
4491325bb0
;check: ordereddates/uniqueleafnames: print on stderr, refactor
2020-12-31 11:22:32 -08:00
Simon Michael
1d4c4c5b8b
check: drop old checkdates/checkdupes commands, consolidate
2020-12-31 10:49:17 -08:00
Simon Michael
8306420b61
check: also check "accounts"/"commodities" on demand
...
(cherry picked from commit 0c2bf54f2955e3a25fd0282acc42608f957abaea)
2020-12-31 08:33:36 -08:00
Simon Michael
31ea37a785
;check: accounts, commodities, payees, ordereddates: improve errors
...
Error messages for these four are now a bit fancier and more
consistent. But not yet optimised for machine readability.
Cf #1436 .
Added to hledger-lib: chomp1, linesPrepend[2].
2020-12-30 18:13:34 -08:00
Damien Cassou
b47d582583
;check: fixes
2020-12-30 18:08:31 -08:00
Simon Michael
3c232fbd7d
check: add "payees" check requiring payee declarations
2020-12-30 18:08:30 -08:00
Simon Michael
a5f9f8ce0c
;update CLI usage texts
2020-12-29 09:43:24 -08:00
Simon Michael
21ce0c30cc
;print: cleanup; discuss unbalanced output ( #1429 )
2020-12-28 07:07:45 -08:00
Simon Michael
cee1c69ac0
;update CLI usage texts
2020-12-26 17:28:47 -08:00
Simon Michael
4330427f6b
cli: make --help/--version always CMD-specific
...
This simplifies the --help/-h and --version flags by making them
position independent: no matter where they appear in the command line,
if there is a command argument they will show the command's help or
version (where applicable), instead of the hledger executable's.
2020-12-26 17:27:28 -08:00
Simon Michael
ae9595c321
cli/help: --info/--man/help show CMD/topic-specific docs
...
hledger CMD --info will now open CMD's info node,
hledger CMD --man will scroll the man page to CMD's section, and
hledger help -i/-m/-p TOPIC will do similar.
This is not perfectly robust but hopefully will be good enough in
practice.
Also the help command's long --info/--man/--pager flags have been
dropped in favour of -i/-m/-p.
2020-12-26 17:27:28 -08:00
Simon Michael
54af71a0b1
cli: general --man, --info flags show the manual
2020-12-26 17:27:28 -08:00
Simon Michael
f20cd2b112
help: show only the hledger manual, for now
2020-12-26 17:27:27 -08:00
Simon Michael
7d3f05b16a
help: add -i/-m/-p short flags
2020-12-26 17:27:27 -08:00
Simon Michael
9beff54b27
help: drop --cat
2020-12-26 17:27:27 -08:00
Simon Michael
ab55be6d64
;doc: link updates
2020-12-26 17:27:27 -08:00
Simon Michael
8a16b2b1b0
;update CLI usage texts
2020-12-26 08:21:45 -08:00
Simon Michael
45a5658396
cli: drop deprecated command aliases a, b, p, r, txns
2020-12-26 08:21:45 -08:00
Simon Michael
fbf9418756
;doc: update links to journal manual
2020-12-24 12:49:04 -08:00
Simon Michael
ef55f9faf3
;update CLI usage texts
2020-12-24 10:22:05 -08:00
Simon Michael
a7e9e9ac0e
doc: merge file format manuals into the hledger manual
...
Also flatten the journal manual topics a bit.
There are pros and cons to this, but I believe the pros outweigh the
cons.
2020-12-24 10:22:05 -08:00
Simon Michael
a950d49e18
cli: hide deprecated aliases in command list
...
(a, b, p, r, equity, txns)
2020-12-23 12:00:42 -08:00
Simon Michael
69a7325f91
;update CLI usage texts
2020-12-23 10:29:30 -08:00
Simon Michael
9c7a87da57
cli: doc: sync/update manual & cli command lists
2020-12-23 10:28:31 -08:00
Simon Michael
65a003c8ee
;doc: refactor, keep commands.m4 in Commands dir
2020-12-22 17:05:28 -08:00
Simon Michael
630347e0e8
;bs/bse/cf/is: describe in terms of balance command
2020-12-22 09:22:10 -08:00
Simon Michael
57a176193d
;doc: commands: include in man pages again; simplify headings
...
Simplify things for now.
2020-12-20 20:08:35 -08:00
Simon Michael
11b787e8ec
;doc: info: drop areg/bal's "Output format" heading to fix node loops
...
These were making it impossible to page through the entier manual with
the space key.
2020-12-20 20:08:35 -08:00
Simon Michael
ad3b5ef2fb
;doc: cli: reorder command docs; clean up includes
2020-12-20 07:57:57 -08:00
Stephen Morgan
e406cebcce
lib: Remove unused AtDefault constructor for ValuationType.
2020-12-19 11:59:44 -08:00
Stephen Morgan
0c23619ae7
lib: Valuation has changed; and -V now acts like --value=end.
2020-12-19 11:59:44 -08:00
Simon Michael
7d4d6517a6
;shake: commandtxts -> cmdhelp; note todos
2020-12-15 08:53:10 -08:00
Simon Michael
349ffd7c0b
updateReportSpecFromOpts -> updateReportSpec[With]
2020-12-12 12:05:44 -08:00
Simon Michael
a2bc7f95f0
;update CLI usage texts
2020-12-08 20:11:32 -08:00
Simon Michael
4f122b605d
;rewrite: replace/update doc in commands list
2020-12-08 19:22:03 -08:00
Simon Michael
786a58ce2a
;cli: drop old command docs from commands list
2020-12-08 09:51:19 -08:00
Simon Michael
7a692284a9
;doc: replace a few addon with add-on
2020-12-08 09:27:36 -08:00
Simon Michael
2066bb5e9f
;update CLI usage texts
2020-11-30 15:21:40 -08:00
Simon Michael
26dc66e118
;check: doc updates
2020-11-30 08:49:10 -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
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
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
ec3ad14ae5
strict mode: -s/--strict requires posted accounts to be declared
2020-11-26 08:48:16 -08:00
Simon Michael
982486e5d2
;update CLI usage texts
2020-11-24 09:23:47 -08:00
Simon Michael
13e3e7607e
;cli: update example in Cli.Main haddock
2020-11-23 10:05:53 -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
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
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
Simon Michael
ab305b3244
roi: add adept's IRC discussion to doc
2020-11-19 09:17:28 -08:00
Simon Michael
a92aa3cd26
;bal: fix a warning
2020-11-18 16:31:32 -08:00