Simon Michael
617c2ecbc5
;doc: consistent markdown readmes for packages
2020-03-22 09:07:47 -07:00
Simon Michael
1a606870ca
;regen docs
2020-03-19 16:05:52 -07:00
Simon Michael
35ba2e4e9e
;bal: doc: recommend using the same commodity for budget goals
2020-03-19 16:03:58 -07:00
Simon Michael
6e37d11bdd
;changelogs: typo, fix hledger-web item
2020-03-19 14:26:55 -07:00
Simon Michael
9631ca561c
;update changelogs "high water marks"
2020-03-19 14:09:37 -07:00
Simon Michael
4191aad049
;update changelogs from release branch
2020-03-19 14:07:53 -07:00
Simon Michael
96b4f0be4f
require newer Decimal, math-functions, fixing inconsistent rounding
...
Decimal 0.5.1+ changed to banker's rounding (round to nearest even
number), and math-functions 0.3.3.0 (used by roi) fixed various
precision-related issues. Now we require the latest versions of these.
This was causing some functional test failures when building with old
GHCs/snapshots.
2020-03-19 10:10:55 -07:00
Simon Michael
cf7de57836
;update changelogs
2020-03-18 16:17:13 -07:00
Simon Michael
70e85d8e4b
;doc: regen manuals
...
[ci skip]
2020-03-07 15:06:39 -08:00
Simon Michael
1883ff4499
bump to dev version
2020-03-07 15:06:18 -08:00
Simon Michael
5639b47d85
;ci: use --pedantic for all; fix a warning with unit test suites
2020-03-07 14:43:50 -08:00
Simon Michael
7ad0f9dd6d
;lib, cli: fix success-hiding in unit test suites
2020-03-07 14:10:22 -08:00
Simon Michael
5ab31f1111
;lib, cli: hide successes in unit test suites' output
2020-03-07 04:00:55 -08:00
Stephen Morgan
702c958487
lib: Replace some utility functions with library functions.
2020-03-02 12:45:30 -08:00
Simon Michael
6dfdc2bee8
;one more cabal file update. Not in hackage tarballs.
2020-03-01 17:42:20 -08:00
Simon Michael
07a05d5c76
;doc: finalise changelogs
...
More cleanup needed, but time's up.
[ci skip]
2020-03-01 17:33:18 -08:00
Simon Michael
061bf73b61
;doc: regen manuals
...
[ci skip]
2020-03-01 17:29:01 -08:00
Simon Michael
ba44d00bed
;bump version to 1.17
2020-03-01 17:29:01 -08:00
Simon Michael
889767f1bd
;bump tested-with
...
[ci skip]
2020-03-01 17:28:43 -08:00
Simon Michael
04fb132496
;doc: draft changelogs
...
[ci skip]
2020-03-01 16:44:28 -08:00
Simon Michael
2c8a6e988f
lib: Hledger.Read.CsvReader cleanup
...
Exports added: CsvRecord, CsvValue, csvFileFor
Exports removed: expandIncludes, parseAndValidateCsvRules, transactionFromCsvRecord
2020-02-27 23:37:32 -08:00
Simon Michael
3aebf03864
;doc: json tweaks
...
[ci skip]
2020-02-26 11:48:09 -08:00
Simon Michael
a33a9d61c2
json: use a simpler, more consumable number representation ( #1195 )
...
Amounts in JSON are now rendered as simple Numbers with up to 10
decimal places, instead of Decimal objects which would in some cases
have 255 digits, too many for most JSON parsers to handle.
A provisional fix, see the comment in Json.hs for more detail.
2020-02-26 11:48:09 -08:00
Simon Michael
4c321cee4a
;doc: update output dest/format docs; add notes about JSON
...
[ci skip]
2020-02-25 09:25:48 -08:00
Simon Michael
2a5f7819af
bs,cf,is,bal,print,reg: support json output format
2020-02-24 17:49:53 -08:00
Simon Michael
bc9bdf8108
;print: refactor, drop unneeded ropts tweak
2020-02-24 17:49:53 -08:00
Simon Michael
7f16d23898
;refactor: extract --value=then error message
2020-02-24 17:49:53 -08:00
Simon Michael
8b520b5c3e
bs,cf,is,bal,print,reg: reject invalid output formats
2020-02-24 17:49:45 -08:00
Simon Michael
7ec25da13a
web: edit/upload: normalise line endings, avoiding parse errors ( #1194 )
...
Renamed: writeValidJournal -> writeJournalTextIfValidAndChanged
Added comments clarifying line ending behaviour of:
add, import, appendToJournalFileOrStdout, readFilePortably,
writeFileWithBackupIfChanged, writeJournalTextIfValidAndChanged
Summary of current behaviour:
- hledger add and import commands will append with (at least some)
unix line endings, possibly causing the file to have mixed line
endings
- hledger-web edit and upload forms will write the file with
the current system's native line endings, ie changing all
line endings if the file previously used foreign line endings.
2020-02-24 14:04:44 -08:00
Simon Michael
696ec4998b
;doc: regen help/manuals
...
[ci skip]
2020-02-22 11:40:41 -08:00
Simon Michael
b9b5702946
;doc: add hledger-ui note to --forecast help ( #1193 )
...
[ci skip]
2020-02-22 11:40:41 -08:00
Simon Michael
e8e1566083
;bal: doc: document --transpose; remove obsolete limitation note
...
[ci skip]
2020-02-20 10:02:02 -08:00
Simon Michael
bd0753101e
bs, cf, is: in csv output, subreport headings had two excess columns
2020-02-12 10:48:04 -08:00
Simon Michael
dad4d9b662
print: be sure to value all postings; -V/-X/--value now imply -x
...
Previously -B implied -x; now any of the valuation flags do.
This avoids a bug where print -V of a transaction with an implicit
commodity conversion would convert only some of its postings to value.
Also, more valuation tests.
2020-02-10 12:41:36 -08:00
Mateus Furquim
05814e6fe7
Fix extra $ symbol
2020-02-10 10:18:20 -08:00
Simon Michael
af73547615
;print, register: doc: some corrections to --value=then's effects
...
[ci skip]
2020-02-10 08:40:50 -08:00
Simon Michael
aa96b41efe
print, register: add --value=then, valuing at each posting's date
...
Currently this will give an error with other kinds of report.
2020-02-10 08:20:39 -08:00
Simon Michael
4d94a5273b
;doc: manuals: whitespace cleanup
...
Remove a bunch of trailing whitespace with M-x whitespace-cleanup.
Except for examples showing hledger output, which might be tested
with shelltest some day, so stripping that whitespace might be problematic.
[ci skip]
2020-02-08 12:44:54 -08:00
Simon Michael
98d0cc9c17
;doc: regen manuals
...
[ci skip]
2020-02-08 11:56:03 -08:00
Simon Michael
54e633e186
;doc: hledger, journal, csv: consistent use of pipe tables
...
For consistency, ease of editing, and to fix unwanted content display
when cycling visibility in markdown-mode.
[ci skip]
2020-02-08 11:52:18 -08:00
Simon Michael
ea4b69db32
;doc: hledger: markdown note
...
[ci skip]
2020-02-08 11:40:40 -08:00
Simon Michael
e3ab3b9985
;doc: regen all manuals, bumping month
...
[ci skip]
2020-02-08 11:20:25 -08:00
Simon Michael
078e9c8e9c
;doc: hledger: merge examples, options, commands files
...
[ci skip]
2020-02-08 11:15:27 -08:00
Simon Michael
d60b053e11
;doc: regen manuals
...
[ci skip]
2020-02-08 11:11:40 -08:00
Simon Michael
e52a6281fb
;doc: hledger: inline troubleshooting, cleanups, m4 docs
...
[ci skip]
2020-02-08 11:10:23 -08:00
Simon Michael
9a52523438
;doc: hledger: not git commit -am, just -m
...
[ci skip]
2020-02-07 16:44:52 -08:00
Simon Michael
8c5aa130e7
;doc: hledger: reorder OPTIONS sections, move one to COMMON TASKS
...
[ci skip]
2020-02-07 12:14:43 -08:00
Simon Michael
202d2e945b
;doc: regen manuals
...
[ci skip]
2020-02-07 12:14:08 -08:00
Simon Michael
fd64d7bb3a
;doc: regen manuals
...
[ci skip]
2020-02-07 10:45:57 -08:00
Simon Michael
6878f74174
;doc: hledger: write the new examples (Common Tasks) section
...
Examples are tested and should be correct.
[ci skip]
2020-02-07 10:42:57 -08:00
Simon Michael
743a63c319
;doc: consolidate hledger manual a bit
2020-02-06 17:52:37 -08:00
Simon Michael
659a034393
;doc: makde some comments less like markdown headings
...
[ci skip]
2020-02-05 19:32:38 -08:00
Simon Michael
6830139b70
;checkdupes: help: fix link
2020-01-28 09:20:42 -08:00
Simon Michael
7011160bfd
;allow base 4.14/GHC 8.10
2020-01-26 08:12:25 -08:00
Simon Michael
b1de2f2308
;doc: drop redundant version message from web manuals
...
[ci skip]
2020-01-25 19:33:12 -08:00
Simon Michael
24c6828a5c
;doc: regen manuals
...
[ci skip]
2020-01-25 17:10:34 -08:00
Simon Michael
444c4342ed
;doc: manuals: hide NAME/SYNOPSIS/DESCRIPTION headings in web manuals
...
[ci skip]
2020-01-25 16:57:51 -08:00
Simon Michael
a6ec6b40da
;doc: manuals: tweak standard description, make hledger's consistent
...
[ci skip]
2020-01-25 16:55:58 -08:00
Simon Michael
f1f32e8341
;close: doc: cleanups, remove dangerous >> example ( #1165 )
...
[ci skip]
2020-01-22 15:32:36 -08:00
Simon Michael
b4ced3188e
;doc: regen manuals
...
[ci skip]
2020-01-22 15:22:56 -08:00
Simon Michael
5ba3cc6f42
close: regularise the --open*/--close* flags for memorability ( #1165 )
...
--closing -> --close
--opening -> --open
--close-to -> --close-acct
--open-from -> --open-acct
The old flags are still accepted for backward compatibility, but are
not shown in --help or docs, to conserve screen and brain space.
2020-01-22 15:19:24 -08:00
Simon Michael
cda8909aae
close: don't repeat the description by default ( #1165 )
...
You'll almost certainly want the opening/closing descriptions to be
different, for filtering, so making --close-desc and --open-desc fully
independent is a better default.
And more doc cleanups.
2020-01-22 15:04:05 -08:00
Simon Michael
ceedcb1a18
;doc: regen manuals
...
[ci skip]
2020-01-22 14:50:21 -08:00
Simon Michael
458de89aae
;close: doc tweaks
...
[ci skip]
2020-01-22 14:42:01 -08:00
Simon Michael
f14ae7df3a
;doc: regen manuals
...
[ci skip]
2020-01-22 14:41:08 -08:00
Simon Michael
72d0190d1d
;close: doc tweaks
...
[ci skip]
2020-01-22 14:40:20 -08:00
Simon Michael
d93c69146d
;doc: regen manuals
...
[ci skip]
2020-01-22 14:30:50 -08:00
Simon Michael
f1110d163d
close: --close-desc/--open-desc customise the descriptions ( #1165 )
2020-01-22 14:30:12 -08:00
Simon Michael
4bb840a0f3
close: use the same default equity account for both ( #1165 )
...
And some doc cleanups.
"equity:opening/closing balances" is now the default account for both.
2020-01-22 14:29:31 -08:00
Simon Michael
9710c86c7f
;doc: regen manuals
...
[ci skip]
2020-01-22 12:52:41 -08:00
Simon Michael
7500002ee5
close: hide equity amounts by default, for simpler entries ( #1165 )
...
-x/--explicit shows them, as with print.
2020-01-22 12:52:16 -08:00
Simon Michael
2645b76ff0
close: hide prices by default, show them with --show-costs ( #1165 )
...
close no longer preserves costs, generating huge entries when there
are many foreign currency/investment transactions, unless you ask it to.
2020-01-22 12:52:01 -08:00
Simon Michael
dee9c0f150
;close: --close-to also sets --open-from and vice versa ( #1165 )
2020-01-22 08:52:20 -08:00
Simon Michael
aa8c18fcc8
;close: refactor ( #1165 )
2020-01-22 08:34:13 -08:00
Simon Michael
42840dd4c2
;close: dedent ( #1165 )
2020-01-22 08:27:01 -08:00
Simon Michael
98b90a8a7b
;close: cleanups ( #1165 )
2020-01-22 08:26:59 -08:00
Simon Michael
090f65ec83
;doc: regen manuals
...
[ci skip]
2020-01-20 18:02:42 -08:00
Simon Michael
69bc8f803b
close: fix some inappropriate rounding, ensure the txn balances ( #1164 )
2020-01-20 18:01:33 -08:00
Simon Michael
1e9f30bafc
close: add the --interleaved flag; refactor a little
...
Interleaved equity postings make troubleshooting easier.
2020-01-20 18:01:29 -08:00
Simon Michael
9bd7a713f9
;print: expand -x doc, mention that it also shows prices
...
[ci skip]
2020-01-20 12:58:47 -08:00
Simon Michael
42dfde141a
;doc: changelogs: update from 1.16.2, cleanups
2020-01-14 11:19:05 -08:00
Simon Michael
dba0b117f4
;doc: draft changelogs
2020-01-14 10:08:59 -08:00
Simon Michael
445e8aa3cc
add support for megaparsec 8 ( #1175 )
2020-01-14 09:54:06 -08:00
Brian Wignall
473b3376ab
;doc: update shell output in hledger*/*.m4.md to use ISO date formatting
2020-01-13 12:32:41 -08:00
Brian Wignall
24026d629a
Change "showEndDates" formatting to yyyy-mm-dd in CompoundBalanceCommand
2020-01-07 15:58:54 -08:00
Brian Wignall
00eb0b3c8f
Make "stack test" pass again
2020-01-07 15:58:22 -08:00
Brian Wignall
35481a665b
Change Date output to yyyy-mm-dd
2020-01-07 15:58:22 -08:00
Aleksandar Dimitrov
8df4e1ed83
Remove --separator command line argument
2020-01-05 14:45:57 -08:00
Simon Michael
65d0fda245
;doc: regen manuals
...
[ci skip]
2020-01-05 10:54:11 -08:00
Simon Michael
2101939345
;doc: update arg file doc, note syntax limitations
...
[ci skip]
2020-01-05 10:53:22 -08:00
Simon Michael
07029047f5
;doc: regen manuals again
...
[ci skip]
2020-01-05 09:17:02 -08:00
Simon Michael
cfb2a61ae1
;bump to dev version; bump man page dates
...
[ci skip]
2020-01-05 09:04:50 -08:00
Simon Michael
4a7a700d93
;doc: fix flags marker appearing in manuals
...
$FLAGS$ didn't work (nor =FLAGS=); _FLAGS it is..
[ci skip]
2020-01-05 07:41:01 -08:00
Simon Michael
f91076cc6a
;doc: regen manuals
...
I think all the non-content changes are due to newer
doc tools and harmless, including this one hopefully:
-.B \f[C]--watch\f[R]
+\f[B]\f[CB]--watch\f[B]\f[R]
[ci skip]
2020-01-05 07:06:42 -08:00
Simon Michael
c186eb6084
;doc: change flags marker in command helps to suit latest pandoc
...
From _FLAGS_ to $FLAGS$, since latest pandoc strips the underscores
at a certain point in our docs rendering.
2020-01-04 21:17:51 -08:00
Stephen Morgan
228edf6ba6
Don't store leaf name in PeriodReport.
...
Calculate at the point of consumption instead.
2020-01-04 21:15:42 -08:00
Stephen Morgan
8882b6fc85
cli: Use PeriodicReport.
2020-01-04 17:23:17 -08:00
Stephen Morgan
74778efcf5
Use nubSort instead of nub . sort.
2020-01-04 08:31:10 -08:00
Brian Wignall
2852f9dbee
Fix typos
2019-12-21 12:09:05 -08:00
Gaith Hallak
9b6652b93f
Update the instructions for the add command
2019-12-18 23:24:10 +03:00
Gaith Hallak
e1bbefbd1b
Remember the previously entered values when stepping forward
2019-12-18 23:14:43 +03:00
Gaith Hallak
ee18227a12
Show the previous input in the input area after the back command
2019-12-18 19:53:45 +03:00
Gaith Hallak
6f26eef832
Change the '<' command to go back one step during addition
2019-12-18 00:38:29 +03:00
Simon Michael
46d516e7a3
move JSON instances from hledger-web to hledger-lib
2019-12-16 17:17:00 -08:00
Simon Michael
5a19d604b6
; sort commands list
2019-12-16 16:32:26 -08:00
Simon Michael
47567cd770
;fix some warnings with GHC 8.10 alpha
...
hledger is GHC 8.10 ready!
2019-12-14 17:30:19 -08:00
Simon Michael
4d20ce2ee0
;doc: cli: update addons list, drop builtin ones
2019-12-09 13:55:16 -08:00
Simon Michael
95aa2e16cc
;doc: fix some old wiki and Cookbook references (hledger_site/#10)
2019-12-09 06:08:03 -08:00
Simon Michael
13e6c7dfdf
lib: drop "assertion" alias for nullassertion
...
Perhaps we'll stick with the null* convention. Fixes a warning in Transaction.hs.
2019-12-09 06:08:03 -08:00
Simon Michael
9d6db33278
close: doc: mention --close-to/--open-from in the manual
...
[ci skip]
2019-12-06 12:27:07 -08:00
Simon Michael
f319bef945
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:49:05 -08:00
Simon Michael
0866b30838
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:44:50 -08:00
Simon Michael
38d64a6f79
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:43:13 -08:00
Simon Michael
46ac93cf5a
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:34:56 -08:00
Simon Michael
ace867d7ed
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:33:41 -08:00
Simon Michael
592e0125fe
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:33:08 -08:00
Simon Michael
4efe397ba4
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:31:15 -08:00
Simon Michael
c54c15fccd
;cli: doc: drop changelog whitespace
...
[ci skip]
2019-12-03 12:28:59 -08:00
Simon Michael
5a2bcecf26
;doc: finalise changelogs
2019-12-03 08:41:44 -08:00
Simon Michael
06b70194c0
;doc: regen manuals
2019-12-03 08:41:44 -08:00
Simon Michael
093dca570d
lib, cli, web: bump version to 1.16.1
2019-12-03 08:41:44 -08:00
Simon Michael
6ae837f820
;doc: changelogs
2019-12-03 08:41:44 -08:00
Simon Michael
13f95327e3
;doc: clarify changelog item for #1085
2019-12-03 08:41:44 -08:00
Simon Michael
e032eff8eb
;doc: changelog updates
2019-12-02 08:59:58 -08:00
Simon Michael
35e70e8f36
;cli: doc: rewrite CSV changelog entries
2019-12-02 08:58:26 -08:00
Simon Michael
0ce890e5ff
lib, cli, web: drop unnecessary mtl-compat dependency
2019-12-02 08:23:00 -08:00
Simon Michael
a0b92e02b9
Revert "remove old fail compatibility imports that are obsolete ?"
...
They are needed with ghc <8.4, not for fail but for <> I think.
Try cleaning up again another time.
This reverts commit 318ce7eb07 .
2019-12-01 11:32:51 -08:00
Simon Michael
d922b6e798
;doc: regen manuals
2019-12-01 10:12:29 -08:00
Simon Michael
6daebf60ea
;regen cabal files
2019-12-01 10:05:37 -08:00
Simon Michael
87d0491103
;bump version to 1.16
2019-12-01 10:03:58 -08:00
Simon Michael
c90c0867c4
;doc: changelogs
...
[ci skip]
2019-12-01 09:59:01 -08:00
Simon Michael
318ce7eb07
remove old fail compatibility imports that are obsolete ?
2019-12-01 08:31:50 -08:00
Simon Michael
5b6dbe86b3
close: don't strip decimal zeros, causing misparsing ( fix #1137 )
2019-11-30 16:58:54 -08:00
Simon Michael
359a118900
;doc: draft changelog updates
...
[ci skip]
2019-11-29 07:57:54 -08:00
Simon Michael
caf8cdf0ca
;test: consistent singular naming for test suites and files
2019-11-29 06:35:29 -08:00
Simon Michael
c7574b8005
;lib, cli: test suite cleanups, don't run hledger-lib tests twice
2019-11-29 06:11:25 -08:00
Simon Michael
2b2a0b3cf8
;tests: use "test" alias for testCase everywhere
...
Easier to type and read, and a little clearer to my eyes;
"testCase" implies a single case, but it can contain many assertions.
2019-11-28 15:33:33 -08:00
Simon Michael
57a534a42f
;cli: drop obsolete test-framework dep
2019-11-28 15:06:52 -08:00
Simon Michael
ebedae01cf
;cabal: remove special cases for unsupported GHC 7
2019-11-28 14:59:18 -08:00
Simon Michael
08951ac3e8
;cabal: add ghc 8.8 to tested-with
...
[ci skip]
2019-11-28 14:59:10 -08:00
Simon Michael
843d394077
cli, ui, web: support GHC 8.8, add stack-ghc8.8.yaml ( #1090 )
...
hledger-web needs an unreleased version of json.
2019-11-28 14:31:48 -08:00
Simon Michael
5dac8af2ef
;ui: fix build error due to tests rewrite
2019-11-27 21:54:31 -08:00
Simon Michael
4ab5896902
close: add --close-to, --open-from to choose account names
2019-11-27 14:19:44 -08:00
Simon Michael
4faefcfab2
;doc: regen manuals
...
[ci skip]
2019-11-27 13:18:08 -08:00
Simon Michael
91a3b03359
;test: update command line help
2019-11-27 13:17:34 -08:00
Simon Michael
b36f6df110
tests: port all unit tests to tasty, second pass ( #1090 )
...
Hledger.Util.Tests helpers have been cleaned up, and test names are
now shown.
Tests have been cleaned up a bit. Some groups of unnamed tests have
been collapsed into a single named test containing a sequence of
assertions. The test command counts named tests, not assertions, so
the reported unit test count has dropped from 199 to 188.
2019-11-27 13:17:34 -08:00
Simon Michael
13a3542464
tests: port all unit tests to tasty, first cut ( #1090 )
...
easytest is not actively maintained and requires an old version of
hedgehog which does not support base-compat 0.11 & ghc 8.8.
This is still using the old easytest helpers, and not displaying test
names properly.
2019-11-27 12:43:43 -08:00
Amitai Burstein
e15adddeb8
Add exit status code to check-dates
2019-11-23 13:43:47 -08:00
Simon Michael
e893c9c107
;doc: regen manuals
...
[ci skip]
2019-11-23 11:33:55 -08:00
Brian Wignall
f8269e21ab
Fix some simple typos
2019-11-20 13:33:33 -08:00
Simon Michael
a0d012a50c
;cli: use the test suites recompilation workaround here too ( #1125 )
...
Applying the same workaround used in the hledger-lib test suites, to
hledger's test & benchmark suites. It seems only a single other-module
was being added here (Paths_hledger.hs), but this may add a little speed
and prevent greater slowdowns in future.
2019-11-19 04:17:23 -08:00
Mykola Orliuk
6dbe925eed
cli: anonymize transaction code also
2019-11-18 17:42:22 -08:00
Mykola Orliuk
0a273561f7
cli: anonymize declared accounts also
...
Fixes simonmichael/hledger#901
2019-11-18 17:42:22 -08:00
Mykola Orliuk
5287fe671b
;all: hide RawOpts internals
...
This way we can ensure we always use only functions from RawOptions.
2019-11-18 17:38:39 -08:00
Mykola Orliuk
8991419c68
;all: drop dummy decodeRawOpts
2019-11-18 17:38:39 -08:00
Mykola Orliuk
31ae3d3aaf
;lib: drop SystemString left from GHC pre 7.2
...
We are relying on base-4.9 or newer. Thus we don't compile anymore with
GHC version lower than 8.0.1.
2019-11-18 17:38:39 -08:00
Simon Michael
68b1cacf0f
lib: refactor, prepare to drop showTransactionUnelided functionality
...
It seems we don't use it at all, and ony says it's not robust with
prices either.
Merge remote-tracking branch 'ony/chores/drop-elide-in-showTransaction'
2019-11-18 17:27:30 -08:00
Simon Michael
69ee21cf16
;doc: regen manuals
...
[ci skip]
2019-11-18 17:14:06 -08:00
Michael Kainer
79ca4a767e
cli: Add -% to compound balance commands
...
This commit introduces the commandline argument -%/--percent to show
percentages of the column's total instead of the absolute amounts for
each account in reports. The signs of the values are preserved.
This option is especially useful for the balance and incomestatement
commands.
If there are multiple commodities involved in a report hledger bails
with an error message. This can be avoided by using --cost. Also note
that if one uses -% with the balance command the chances are high that
all numbers are 0. This is due to the fact that by default balance sums
up to zero. If one wants to use -% in a meaningful way with balance one
has to add a query.
In order to keep the implementation as simple as possible --tree has no
influence over how the percentages are calculated, i.e., the percentages
always represent the fraction of the columns total. If one wants to know
the percentages relative to a parent account, one has to use a query to
narrow down the accounts.
2019-11-18 17:10:59 -08:00
Dmitry Astapov
87b82b6839
lib: roi does not fail on empty input data (+test)
2019-11-18 16:13:04 -08:00
Mykola Orliuk
ab9c150759
;lib: clean out showTransactionUnelided
...
Keep aliases until next major release.
2019-11-16 12:53:07 +01:00
Brian Wignall
0ce7e811ba
Fix two small typos
2019-11-10 13:54:48 -08:00
Simon Michael
3f530f5b54
;doc: update changelogs, including #1095
...
[ci skip]
2019-11-07 16:37:03 -08:00
Simon Michael
445adbe9d1
;doc: regen manuals
...
[ci skip]
2019-10-23 12:30:27 -07:00
Simon Michael
cfc00070a1
;doc: fix output destination/format links in command docs
...
[ci skip]
2019-10-23 12:29:17 -07:00
Simon Michael
312e772468
prices: style price amounts; always show full precision
2019-10-20 07:09:34 -07:00
Mykola Orliuk
78146978f4
;lib: store raw opts unquoted
...
It looks like we only need quote when we build query and in some
messages.
Fixes simonmichael/hledger#1079
2019-10-19 14:44:08 -07:00
Simon Michael
9967ead4c5
;lib: let commodityStylesFromAmounts & co. return an error ( #793 , #1091 )
...
And if they did, the stats command would now throw an error.
Changed:
journalApplyCommodityStyles
journalInferCommodityStyles
commodityStylesFromAmounts
2019-09-27 15:09:39 -10:00
Simon Michael
24ce2686f4
drop GHC 7.10/base 4.8 support, finally, due to MonadFail hassles
...
in JournalReader.hs. If you still need this, feel free to work on
those errors. But hopefully not, because dropping base 4.8 should
permit some code cleanups.
2019-09-14 03:45:37 -07:00
Simon Michael
977d4f009e
lib, cli: disable hledger-lib test suites, hledger benchmark suite
...
by default. hledger-lib's doctests and easytests test suites (each ?)
require an additional slow rebuild of hledger-lib and are not worth
the time, energy and carbon. hledger's test suite runs those same
easytest tests (but not the doctests).
2019-09-14 03:45:37 -07:00
Simon Michael
a0deb88796
;doc: regen manuals
...
[ci skip]
2019-09-13 11:00:03 -07:00
Simon Michael
867ccb31d5
;import: drop inconsistent period
2019-09-13 09:07:18 -07:00
Simon Michael
bf1e398ffd
;import: with --dry-run the no txns case should be parseable too
2019-09-13 09:02:32 -07:00
Simon Michael
f65fc47185
;bump version to 1.15.99
...
[ci skip]
2019-09-13 08:43:33 -07:00
Simon Michael
e851bdf834
;doc: changelogs
...
[ci skip]
2019-09-13 08:43:33 -07:00
Simon Michael
af21ae6eb6
;doc: regen manuals
...
Wrapping and hyphenation has changed again, which I thought would
be more stable now with same tool versions on laptop and server.
Who knows.
2019-09-13 08:43:33 -07:00
Simon Michael
edaf92db5e
import: message cleanups, mention input files
...
Only the --dry-run message needs the semicolon, so dry run output can
be piped into hledger.
2019-09-13 08:43:33 -07:00
Simon Michael
807273d9de
import: --catchup marks all transactions imported, without importing
2019-09-13 08:43:33 -07:00
Simon Michael
35a90004ca
import: also show a message when nothing was imported
2019-09-13 08:43:33 -07:00
Simon Michael
dfc0095fed
import: create the journal if missing, like the add command
...
Streamlines import/migration instructions.
2019-09-13 08:43:33 -07:00
Simon Michael
2bb6e25390
;api: also fix hledger's cabal file
2019-09-11 14:53:55 -07:00
Simon Michael
4db14ef70f
;api: another round of hledger-api purging; fix the build
2019-09-11 14:49:22 -07:00
Simon Michael
9224cfcf50
;doc: more "curses-style interface" -> "terminal interface"
...
[ci skip]
2019-09-10 18:20:20 -07:00
Simon Michael
acd7010e5a
;doc: "curses-style interface" -> "terminal interface"
...
[ci skip]
2019-09-10 18:14:16 -07:00
Simon Michael
ef04907484
;doc: fix broken manual links in manuals source
...
[ci skip]
2019-09-10 17:02:56 -07:00
Simon Michael
538e97f3ac
;lib: clarify journalAddForecast doc ( #835 )
...
[ci skip]
2019-09-10 16:59:26 -07:00
Simon Michael
85d48a6b0e
;doc: regen manuals (on server)
...
Usually done on my laptop, but the toolchain on both machines should
produce the same result these days..
[ci skip]
2019-09-09 08:04:26 -07:00
Simon Michael
3b35e0afca
;site: manuals: fix many links that went to a prerelease manual
...
[ci skip]
2019-09-09 06:24:08 -07:00
Simon Michael
499e20c0b2
lib, cli, ui: start using Control.Monad.Fail, allow base-compat 0.11
...
fail is moving out of Monad and into it's own MonadFail class.
This will be enforced in GHC 8.8 (I think).
base-compat/base-compat-batteries 0.11.0 have adapted to this,
and are approaching stackage nightly
(https://github.com/commercialhaskell/stackage/issues/4802 ).
hledger is now ready to build with base-compat-batteries 0.11.0, once
all of our deps do (eg aeson). We are still compatible with the older
0.10.x and GHC 7.10.3 as well.
For now we are using both fails:
- new fail (from Control.Monad.Fail), used in our parsers, imported
via base-compat-batteries Control.Monad.Fail.Compat to work with
older GHC versions.
- old fail (from GHC.Base, exported by Prelude, Control.Monad,
Control.Monad.State.Strict, Prelude.Compat, ...), used in easytest's
Test, since I couldn't find their existing fail implementation to update.
To reduce (my) confusion, these are imported carefully, consistently,
and qualified everywhere as Fail.fail and Prelude.fail, with clashing
re-exports suppressed, like so:
import Prelude hiding (fail)
import qualified Prelude (fail)
import Control.Monad.State.Strict hiding (fail)
import "base-compat-batteries" Prelude.Compat hiding (fail)
import qualified "base-compat-batteries" Control.Monad.Fail.Compat as Fail
2019-09-08 17:13:47 -07:00
Simon Michael
89c3011df4
;doc: 1.15.2 changelogs
...
[ci skip]
2019-09-05 15:35:59 -07:00
Simon Michael
7ae75022bf
;doc: regen manuals
2019-09-05 15:35:44 -07:00
Simon Michael
cd5af48165
lib, cli: bump version to 1.15.2
2019-09-05 15:35:19 -07:00
Simon Michael
ff41603a75
;doc: valuation: also link to #1083
...
[ci skip]
2019-09-05 14:23:17 -07:00
Simon Michael
a7f172b085
valuation: -V/-X respects report end date, code/doc cleanups ( #1083 )
...
-V (and -X) now respects a report end date set with -e/-p/date: when
choosing the valuation date, similar to hledger 1.14 and Ledger.
This means that -V/-X aren't exactly like either --value=end or
--value=now. The "Effect of --value on reports" doc has been extended
accordingly, and much of it has been reworded and made more accurate.
2019-09-05 13:41:36 -07:00
Simon Michael
e73b7c2635
;doc: document effect of valuation on reports more thoroughly
...
A column for -V/-X has been added (it differs in some cases, cf
[ci skip]
2019-09-04 19:16:57 -07:00
Simon Michael
1f3c3723db
;doc: cli: try to clarify valuation docs, note #1083
...
[ci skip]
2019-09-03 13:32:30 -07:00
Simon Michael
6d4d43dc62
;lib, cli: fix 1.15.1 changelog heading
...
[ci skip]
2019-09-02 12:53:51 -07:00
Simon Michael
90e5a5f95b
;lib, cli: don't forget to commit the cabal file
2019-09-02 12:31:06 -07:00
Simon Michael
8148136e71
cli: note command docs omitted from 1.15, bump to 1.15.1
2019-09-02 12:26:48 -07:00
Simon Michael
ebacb20b5e
;doc: regen hledger plaintext manual too
...
[ci skip]
2019-09-02 11:58:10 -07:00
Simon Michael
16a3c96da0
;doc: regen manuals
...
[ci skip]
2019-09-02 11:11:56 -07:00
Simon Michael
3654ac5239
;doc: cli: clean up -V/-X a little
...
[ci skip]
2019-09-02 06:27:09 -07:00
Simon Michael
319f0e5224
;doc: cli: tweak comments to avoid confusing markdown-mode
...
[ci skip]
2019-09-02 06:19:24 -07:00
Simon Michael
b2710c698c
;doc: cli: add missing commands to manual
...
commodities, descriptions, diff, notes, payees
[ci skip]
2019-09-02 06:16:52 -07:00
Simon Michael
9664194f20
;doc: cli: drop obsolete comments
...
[ci skip]
2019-09-02 06:11:01 -07:00
Simon Michael
6703057050
;doc: more changelog cleanups
...
[ci skip]
2019-09-01 09:59:51 -07:00
Simon Michael
ede6a51f08
;doc: finalise changelogs
...
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
00f3ad8d3f
;doc: changelogs
...
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
b1859769ac
;doc: regen man pages
...
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
29f7654c3a
bump versions to 1.15
2019-09-01 08:53:06 -07:00
Simon Michael
9cdbce288c
;descriptions/notes/payees: fix build warning
2019-08-31 18:36:03 -07:00
Simon Michael
c2736be4aa
;doc: changelogs
...
[ci skip]
2019-08-30 21:26:23 -07:00
Simon Michael
65692b0e36
;doc: update link for lowercase filename
...
[ci skip]
2019-08-30 07:28:06 -07:00
Simon Michael
fd5dc7bc18
;doc: fix some table rendering in the html manuals
...
[ci skip]
2019-08-26 09:37:03 -07:00
Simon Michael
da6718806a
;doc: don't add page TOCs any more, sphinx has it covered
...
[ci skip]
2019-08-26 09:37:03 -07:00
Simon Michael
4dc0e359dc
help: don't require a journal file
2019-08-22 17:49:50 -07:00
Simon Michael
318a7ce234
reg: show negative amounts in red, like balance and Ledger
2019-08-21 07:11:55 +01:00
Simon Michael
8a7905ac73
;doc: changelogs
...
[ci skip]
2019-08-19 12:03:54 +01:00
Simon Michael
5bc1e7746f
stats: show count of market prices (P), and the commodities covered
2019-08-19 11:16:09 +01:00
Simon Michael
1cbbe8f43d
memoise market valuation, making it fast ( #999 )
2019-08-19 02:16:39 +01:00
Simon Michael
7c2511aa29
bs: show end date(s) in title, not transactions date span ( #1078 )
...
Compound balance reports showing ending balances (eg balancesheet),
now show the ending date (single column) or range of ending
dates (multi column) in their title. ,, (double comma) is used
rather than - (hyphen) to suggest a sequence of discrete dates
rather than a continuous span.
2019-08-15 18:22:23 +01:00
Simon Michael
6796c9a080
cli: add missing extra dep
2019-07-26 23:40:58 +01:00
Simon Michael
8284c1042b
;doc: update command help txt files
...
[ci skip]
2019-07-26 23:25:52 +01:00
Simon Michael
8cde342432
tags: speedup: replace n^2 nub with n log n nubSort
2019-07-26 23:24:09 +01:00
Simon Michael
0b793bca1b
tags: add --values flag
2019-07-26 23:18:21 +01:00
Simon Michael
2aa5bd1653
;tags: mention pivot trick for listing tag values
...
[ci skip]
2019-07-26 22:19:27 +01:00
Simon Michael
67404fafe5
;doc: changelog edit
...
[ci skip]
2019-07-26 22:19:27 +01:00
Simon Michael
25fa835d9a
;doc: more changelog edits
...
[ci skip]
2019-07-25 17:29:12 +01:00
Simon Michael
d53fb387be
;doc: more changelog edits, backtick-quote flags
...
[ci skip]
2019-07-25 12:43:59 +01:00
Simon Michael
c7f9356fd1
;doc: edit changelogs
...
[ci skip]
2019-07-25 12:33:58 +01:00
Simon Michael
030a409dd3
;doc: update changelogs
...
[ci skip]
2019-07-25 08:48:01 +01:00
Caleb Maclennan
11d9e5eb6a
code: Strip extraneous trailing whitespace from Haskell sources
2019-07-15 16:40:49 +01:00
Caleb Maclennan
e68e558761
payees: Split command into descriptions, payees, and notes
2019-07-15 08:22:16 +01:00
Caleb Maclennan
5d42578137
payees: Output sorted results as in other similar commands
2019-07-15 08:22:16 +01:00
Simon Michael
f49a76e051
payees: get basic command working
2019-07-15 08:22:16 +01:00
Caleb Maclennan
e6b709cb01
payees: Add a module for handling payees command
2019-07-15 08:22:16 +01:00
Simon Michael
7d5f33441e
;doc: draft changelogs
...
[ci skip]
2019-07-12 23:24:10 +01:00
Simon Michael
a6e9b11a54
;cabal: bump tested-with, regen cabal files
...
[ci skip]
2019-07-12 23:24:10 +01:00
Simon Michael
6c2398e4d7
close: preserve transaction prices (costs) accurately ( #1035 )
...
Transaction prices were being collapsed/misreported after close/open;
this is fixed. Now each separately-priced amount gets its own posting,
and only the last of these (for each commodity) gets a balance
assertion. Also the equity posting's amount is now always shown
explicitly, which in multicommodity situations means that multiple
equity postings are shown. The upshot is that a balance -B report
will be unchanged after closing & opening transactions.
2019-07-09 11:21:22 +01:00
Jakob Schöttl
8569b39771
Refactoring: qualified call to process function
2019-06-30 10:38:06 +02:00
Jakob Schöttl
2b01312004
Fix and update documentation on date options
2019-06-30 10:38:06 +02:00
Simon Michael
27c01e82b5
add: doc: mention the windows trailing-dot file path issue
2019-06-26 18:47:11 +01:00
Simon Michael
33d03284c3
;valuation: more tests; document default amount style issue
...
[ci skip]
2019-06-17 08:19:23 -07:00
Simon Michael
5cb334514c
;lib: rename setMinimalPrecision -> setNaturalPrecision
2019-06-14 19:04:09 -07:00
Simon Michael
dd5afbb6fe
;doc, debug output tweaks ( #131 )
2019-06-13 15:50:01 -07:00
Simon Michael
ce0354ddbe
lib: -X/--exchange now supports indirect price chains ( #131 )
...
Adds fgl as a dependency.
2019-06-13 15:50:01 -07:00
Simon Michael
692620180e
;lib: refactor: change AmountPrice to a Maybe
...
I've wanted to do this for a long time; now that prices are in flux,
seems a good time.
2019-06-13 15:50:01 -07:00
Simon Michael
adb6ee40eb
lib: clarify price types ( #131 )
...
dropped journalPrices
renamed Price to AmountPrice, AKA "transaction price"
renamed MarketPrice to PriceDirective.
added new MarketPrice (more pure form of PriceDirective without the amount style information)
Prices is now a more efficient data structure, but not used yet.
2019-06-13 15:50:01 -07:00
Simon Michael
e24c6292d0
lib: support -X/--exchange (direct/reverse prices only) ( #131 )
2019-06-13 15:50:01 -07:00
Simon Michael
50a52dd467
lib: --value can select commodity (via direct/reverse prices) ( #131 )
2019-06-13 15:50:01 -07:00
Simon Michael
289891cacf
;prices: note
...
[ci skip]
2019-06-02 08:48:41 -07:00
Simon Michael
faf85d91e3
cli: restore --aux-date and --effective as --date2 aliases ( #1034 )
...
These Ledger-ish spellings were dropped over the years, to improve
--help's layout. Now they work again, but are considered hidden flags
so --help doesn't show them automatically (but I decided to mention
them manually in --date2's description).
2019-06-02 08:48:41 -07:00
Simon Michael
4b004c2332
; doc tweak
...
[ci skip]
2019-05-24 10:46:29 -07:00
Simon Michael
aa99743096
make -V do --value=end in multiperiod reports ( #329 )
2019-05-24 10:30:35 -07:00
Simon Michael
c95907cb78
;doc: fix useful value report examples ( #329 )
...
[ci skip]
2019-05-23 22:39:05 -07:00
Simon Michael
5e54920160
;regen embedded manuals
2019-05-23 22:26:43 -07:00
Simon Michael
9977739c76
bal etc.: replace --value=transaction with --value=cost ( #329 )
2019-05-23 21:55:18 -07:00
Simon Michael
2325ff4e08
;doc: update --value docs ( #329 )
2019-05-23 21:55:17 -07:00
Simon Michael
f999bf78e6
opts: new -B/--cost, -V/--market, --value flags ( #329 )
2019-05-23 13:11:20 -07:00
Simon Michael
0b67df2d31
opts: shorten csv separator arg template
2019-05-23 00:36:59 -07:00
Simon Michael
e21afc466a
bal/bs/bse: -H or --cumulative now disables -T ( #329 )
...
To reduce confusion, multiperiod balance reports using -H/--historical
or --cumulative, which show end balances, no longer show a Totals
column since summing end balances generally doesn't make sense.
Also the underlying MultiBalanceReport now returns zero for those
totals when in cumulative or historical mode.
2019-05-11 20:43:28 -07:00
Simon Michael
76342a3fd0
bal/bs/cf/is: mention valuation type in report title
2019-05-09 15:39:43 -07:00
Simon Michael
2e44d09fdb
;doc: tweak --value-at table
...
[ci skip]
2019-05-09 12:26:30 -07:00
Simon Michael
fb18019212
bal: document and test --value-at with --budget ( #329 )
2019-05-09 12:23:51 -07:00
Simon Michael
82104e580b
;doc: improve --value-at docs
...
[ci skip]
2019-05-09 08:49:51 -07:00
Simon Michael
a63e582aca
;doc: improve --value-at docs
...
[ci skip]
2019-05-07 16:20:19 -07:00
Simon Michael
5e2f5cf511
;doc: rewrite: consistent literal block styling
...
[ci skip]
2019-05-07 16:11:35 -07:00
Simon Michael
5744d7679d
;doc: options: definition lists + bullets don't work in man pages
...
[ci skip]
2019-05-07 16:11:33 -07:00
Simon Michael
72214a5747
reg: fix --value-at=transaction with -M ( #329 )
2019-05-06 08:07:16 -07:00
Simon Michael
30a35230d2
;doc: update --value-at support, add more report details ( #329 )
2019-05-05 17:48:20 -07:00
Simon Michael
4c56baf842
;doc:options:update --value-at support
2019-05-05 11:12:01 -07:00
Simon Michael
8d7eacd73f
bal: support --value-at=p/t with multiperiod reports ( #329 )
2019-05-05 09:30:01 -07:00
Simon Michael
3a79e300c9
;bal: cleanup
2019-05-04 12:22:00 -07:00
Simon Michael
ec1b98434c
reg: support --value-at=period with periodic reports ( #329 )
2019-05-04 12:22:00 -07:00
Simon Michael
dd8c403c81
;cli: option help tweaks
2019-05-04 12:22:00 -07:00
Simon Michael
cca0b7aec6
;update changelogs
2019-05-04 12:21:54 -07:00
Simon Michael
ebf5ed93f2
valuation: more thorough --value-at; document status ( #329 , #999 )
...
This feature turns out to be quite involved, as valuation interacts
with the many report variations. Various bugs/specs have been
fixed/clarified relating to register's running total, balance totals
etc. Eg register's total should now be the sum of the posting amount
values, not the values of the original sums. Current level of support
has been documented.
When valuing at transaction date, we once again do early valuation of
all posting amounts, to get more correct results. variants. This means
--value-at=t can be slower than other valuation modes when there are
many transactions and many prices. This could be revisited for
optimisation when things are more settled.
2019-05-03 12:24:02 -07:00
Simon Michael
040f2ba1bf
doc: cli: consistent examples styling
...
[ci skip]
2019-05-03 11:29:43 -07:00
Simon Michael
4fd09bedfc
doc: options: value-at: help fix
...
[ci skip]
2019-04-26 12:22:21 -07:00
Simon Michael
696e3098c8
reg: support --value-at in register reports; cleanups, tests
2019-04-26 12:08:46 -07:00
Simon Michael
00975fb226
bal*: support --value-at in multicolumn balance reports
2019-04-26 12:08:31 -07:00
Simon Michael
65934958f9
rename --value-date -> --value-at; --value-at implies -V
2019-04-26 12:08:31 -07:00
Simon Michael
9adae02973
print: add --value-date general option; implement for print -V
2019-04-26 12:08:31 -07:00
Simon Michael
a08140b073
doc: options: argument files: link to main site, not github
2019-04-26 12:08:31 -07:00
Simon Michael
c23fc8b671
speed up -V/--value by converting reports, not the journal ( #999 )
...
Instead of converting all journal amounts to value early on, we now
convert just the report amounts to value, before rendering.
This was basically how it originally worked (for the balance command),
but now it's built in to the four basic reports used by print,
register, balance and their variants - Entries, Postings, Balance,
MultiBalance - each of which now has its own xxValue helper.
This should mostly fix -V's performance when there are many
transactions and prices (the price lookups could still be optimised),
and allow more flexibility for report-specific value calculations.
+------------------------------------------++-----------------+-------------------+--------------------------+
| || hledger.999.pre | hledger.999.1sort | hledger.999.after-report |
+==========================================++=================+===================+==========================+
| -f examples/1000x1000x10.journal bal -V || 1.08 | 0.96 | 0.76 |
| -f examples/2000x1000x10.journal bal -V || 1.65 | 1.05 | 0.73 |
| -f examples/3000x1000x10.journal bal -V || 2.43 | 1.58 | 0.84 |
| -f examples/4000x1000x10.journal bal -V || 4.39 | 1.96 | 0.93 |
| -f examples/5000x1000x10.journal bal -V || 7.75 | 2.99 | 1.07 |
| -f examples/6000x1000x10.journal bal -V || 11.21 | 3.72 | 1.16 |
| -f examples/7000x1000x10.journal bal -V || 16.91 | 4.72 | 1.19 |
| -f examples/8000x1000x10.journal bal -V || 27.10 | 9.83 | 1.40 |
| -f examples/9000x1000x10.journal bal -V || 39.73 | 15.00 | 1.51 |
| -f examples/10000x1000x10.journal bal -V || 50.72 | 25.61 | 2.15 |
+------------------------------------------++-----------------+-------------------+--------------------------+
There's one new limitation, not yet resolved: -V once again can pick a
valuation date in the future, if no report end date is specified and
the journal has future-dated transactions. We prefer to avoid that,
but reports currently are pure and don't have access to today's date.
2019-04-23 17:39:01 -07:00
Simon Michael
1cacfcea28
lib: fix journalApplyValue test ( #999 )
2019-04-23 07:20:10 -07:00
Simon Michael
08d226aaf5
lib: add a test for journalApplyValue that times itself ( #999 )
...
This test prints the time elapsed (before the OK message).
Mainly to support current performance tuning
(make ghcid-test-Hledger.Cli.Utils.journalApplyValue),
but also for future reference.
2019-04-22 16:40:58 -07:00
Simon Michael
76b933641d
rejigger Hledger.Cli tests to have correct prefix, add Cli.Utils
2019-04-22 12:47:28 -07:00
Simon Michael
028303acd7
lib: speed up -V by sorting market prices just once ( #999 )
...
-V is still quite a bit slower than no -V, but not as much as before:
+===========================================================++=======+
| hledger.999.pre -f examples/10000x10000x10.journal bal || 5.20 |
| hledger.999.pre -f examples/10000x10000x10.journal bal -V || 57.20 |
| hledger.999 -f examples/10000x10000x10.journal bal || 5.34 |
| hledger.999 -f examples/10000x10000x10.journal bal -V || 17.50 |
+-----------------------------------------------------------++-------+
2019-04-20 13:12:53 -07:00
Simon Michael
6f4009d589
import: doc tweaks
...
[ci skip]
2019-04-19 15:44:06 -07:00
Simon Michael
ca79981f8d
doc: regen command help
...
[ci skip]
2019-04-19 11:19:24 -07:00
Simon Michael
eb576ba5be
import: document a problem with balance assignments
...
[ci skip]
2019-04-19 11:18:33 -07:00
Simon Michael
ab93eb4258
close: doc: fix typo
...
[ci skip]
2019-03-26 16:40:03 -07:00
Simon Michael
c9e16b83ef
; propagate dev version bump
2019-03-20 17:13:59 -07:00
Simon Michael
124aaffd34
; merge latest changelogs
2019-03-20 16:18:04 -07:00
Simon Michael
3d206ad6bd
; changelogs from 1.14 branch
2019-03-20 16:18:04 -07:00
Simon Michael
fee0e39320
; lib, cli, ui, web, api: bump to dev version
2019-03-20 16:18:04 -07:00
Hans-Peter Deifel
489b7fd870
Constrain easytest dependency to fix cabal build
...
This constraints the easytest dependency to <0.3, because hledger and
hledger-lib currently don't build with 0.3.
Of course the better solution would be to fix the build errors, but easytest-0.3
is not even in stackage nightly yet and I just need it to build right now :-)
2019-03-15 12:33:16 -07:00
Simon Michael
64df6e731c
;doc: cli: BUGS -> LIMITATIONS; mention windows display issue ( #961 )
...
[ci skip]
2019-03-12 03:22:20 -07:00
Simon Michael
afaff4c306
;doc: cli: update unicode section, add windows display issue ( #961 )
2019-03-11 12:42:02 -07:00
Simon Michael
6c841a266d
diff: help tweaks (cf #981 )
2019-03-09 09:45:30 -08:00
Simon Michael
f648d6d78e
; regen manual. And, start using ; prefix for non-changelog changes
...
(as Emacs does).
[ci skip]
2019-03-04 12:01:41 -08:00
Simon Michael
e57bf4a9f2
diff: make it show in commands list; export it ( #981 )
2019-03-04 12:01:34 -08:00
Gabriel Ebner
ceb193f85e
cli: add diff command
...
This merges the external hledger-diff addon, which is now deprecated.
https://github.com/gebner/hledger-diff/
2019-03-04 11:39:11 -08:00
Simon Michael
89255dbf76
cli: changelog
...
[ci skip]
2019-03-01 18:39:55 -08:00
Simon Michael
928ddfeb13
bump hledger version to 1.14.1, and other pkgs' lower bounds
2019-03-01 18:39:25 -08:00
Simon Michael
8c4f63d060
cli: fix missing Commodities.txt build error
2019-03-01 18:35:16 -08:00
Simon Michael
172dbc7a90
doc: changelogs
...
[ci skip]
2019-03-01 17:46:37 -08:00
Simon Michael
0cd5545e26
regen cabal files/manuals
...
[ci skip]
2019-03-01 16:17:25 -08:00
Simon Michael
68e5c41d52
bump version, manual dates
...
[ci skip]
2019-03-01 16:11:15 -08:00
Simon Michael
9fab3257e8
regen cabal files
2019-03-01 15:44:40 -08:00
Simon Michael
9bb6f75bc8
update tested-with, add ghc 8.6
...
[ci skip]
2019-03-01 15:10:42 -08:00
Jakub Zárybnický
6becbc78f3
cli, web, ui: Replace withJournalDo* variants
2019-03-01 05:42:30 -08:00
Simon Michael
a3ae68020f
regen manuals
...
[ci skip]
2019-02-26 10:13:50 -08:00
Simon Michael
3dbd1378de
bal: doc: clarify budget report differences; drop sorting limitation
...
[ci skip]
2019-02-24 21:09:59 -08:00
Simon Michael
0bc16d4af6
lib, cli, web: rename porigin -> poriginal
2019-02-20 20:23:54 -08:00
Jakob Schöttl
49f286dc70
Fix CLI help text
2019-02-17 06:55:01 -08:00
Simon Michael
03877057fb
refactor: cli: commands: hlint clean
2019-02-14 05:15:49 -08:00
Simon Michael
17c4a47a85
regen cli help, manuals
...
[ci skip]
2019-02-14 05:15:49 -08:00
Simon Michael
d7a815fc08
commodities: add commodities command
2019-02-14 05:15:48 -08:00
Simon Michael
21fac53954
doc: regen manuals
...
[ci skip]
2019-02-11 14:15:44 -08:00
Jakob Schöttl
ba1abae7c9
Add doc on --invert
2019-02-09 15:55:41 -08:00
Jakob Schöttl
161ca660dc
Support register --invert option to negate amounts
2019-02-09 15:55:41 -08:00
Jakob Schöttl
98d7c073c7
Reduce simple lambda
2019-02-09 12:47:24 -08:00
Simon Michael
94753f1cea
bump to dev version
2019-02-08 11:33:44 -08:00
Simon Michael
a18e4e9773
hpack: drop quotes from version: field, apparently not required
...
[ci skip]
2019-02-05 06:35:40 -08:00
Simon Michael
18ffa65168
tools: move setversion to shake, use PKG/.version, set upper bounds
...
./Shake setversion will now propagate the version number in each
package's .version file, to all the places in that package where it's
needed (ie the defs.m4 file and multiple places in the package.yaml
file. Also it now updates upper bounds on other hledger packages
to the next major version. (The new lower/upper bounds may not always
be what's desired, manual review required.)
[ci skip]
2019-02-04 18:47:27 -08:00
Simon Michael
bde46f7bd0
doc: move version, release date entirely into per-package macros
...
[ci skip]
2019-02-04 15:28:23 -08:00
Simon Michael
bf6acf52ef
doc: allow per-package m4 defs, to override things like version
...
[ci skip]
2019-02-04 15:18:51 -08:00
Simon Michael
6dab730900
cli: bump version to 1.13.2
...
[ci skip]
2019-02-04 08:36:36 -08:00
Simon Michael
6de8e7d516
changelog
...
[ci skip]
2019-02-04 08:33:43 -08:00
Simon Michael
e89c3752c4
stats: tweak -o help, output format is not supported here
...
[ci skip]
2019-02-03 13:05:48 -08:00
Simon Michael
c959e555ad
print, reg: restore -o, -O flags dropped during refactor ( #967 )
2019-02-03 13:04:59 -08:00
Simon Michael
78a66594ed
lib, cli: changelogs
2019-02-02 20:23:30 -08:00
Simon Michael
6553353bc5
lib, cli: bump version to 1.13.1
2019-02-02 20:21:35 -08:00
Simon Michael
86d5652e53
stop depending on here due to slow haskell-src-meta/stackage issues
...
Using file-embed or ordinary literals instead, for now.
2019-02-02 16:34:10 -08:00
Simon Michael
f9b85a1d4c
update embedded docs
2019-02-01 17:23:12 -08:00
Simon Michael
40d1572359
bump version to 1.13
2019-02-01 17:19:19 -08:00
Simon Michael
ca0d0b0d81
doc: changelogs
2019-02-01 17:13:16 -08:00
Simon Michael
33d82fb657
fix: --forecast shouldn't force --auto on ( #953 , #959 )
2019-02-01 11:43:24 -08:00
Simon Michael
d6e075dacd
refactor journalModifyTransactions, modifyTransactions
...
API changes:
Hledger.Data.TransactionModifier
-transactionModifierToFunction
+modifyTransactions
Hledger.Read.Common.applyTransactionModifiers -> Hledger.Data.Journal.journalModifyTransactions
2019-02-01 11:31:04 -08:00
Simon Michael
4a9fa5cd38
internals: append rather than prepend forecasted txns
2019-02-01 11:29:22 -08:00
Simon Michael
9955f53b9b
doc: changelogs cleanup
...
[ci skip]
2019-01-31 15:43:08 -08:00
Simon Michael
5435150d39
doc: don't use sed; fix accidental dedenting of some lists ( #961 )
...
The sed code was showing an error message, not too precise.
Pandoc's lua filters to the rescue!
[ci skip]
2019-01-31 08:34:49 -08:00
Simon Michael
3474cb08bd
cli: commands list: mention budgets
...
[ci skip]
2019-01-31 08:33:40 -08:00
Simon Michael
59739d1cd3
doc: command docs readme -> .md
...
[ci skip]
2019-01-30 17:59:42 -08:00
Simon Michael
5eb887781b
doc: regen hledger manual
...
[ci skip]
2019-01-30 17:58:51 -08:00
Simon Michael
845fdf8302
doc: update command docs readme
2019-01-30 17:58:23 -08:00
Simon Michael
c8246e7323
cli: command help: reduce width, line wrapping
...
cmdargs wraps any lines longer than 78 characters. To (mostly) avoid
this, we now display verbatim blocks unindented, and some of
register's examples have been altered to make them fit.
2019-01-30 17:58:13 -08:00
Simon Michael
36246e4976
cli: commands list: reorder help lines
...
[ci skip]
2019-01-30 12:54:22 -08:00
Simon Michael
4c5ac4dd06
cli: fix command help, really render as plain text
...
pandoc thinks .txt is a markdown file apparently
2019-01-30 12:44:10 -08:00
Simon Michael
fa82cbcf6e
doc: regen hledger manual
...
[ci skip]
2019-01-30 10:41:39 -08:00
Simon Michael
3baad5d729
cli: render command help as plain text, hiding markup
...
This means committing a bunch more generated files, but it's probably
worthwhile, so we can have both rich hyperlinked/styled command docs
and clean readable command help.
2019-01-30 10:41:39 -08:00
Simon Michael
88ef2abfff
refactor: Commands
2019-01-30 09:09:52 -08:00
Simon Michael
8d6b5cc4f3
cli: commands list: fix addons being shown twice
2019-01-30 09:09:52 -08:00
Simon Michael
2442b4f46f
refactor: hledgerCommandMode
2019-01-30 09:09:52 -08:00
Simon Michael
a23f391d7e
cli: commands list: reorganise
...
[ci skip]
2019-01-28 12:48:15 -08:00
Simon Michael
9fe3212940
changelogs
...
[ci skip]
2019-01-28 10:45:25 -08:00
Simon Michael
469b715352
cli: commands list: update command descriptions
2019-01-28 10:23:39 -08:00
Simon Michael
a9eb84a451
cli: commands list: show addons prefixed with +
2019-01-28 10:07:18 -08:00
Simon Michael
b92aa4b89e
refactor: Commands
2019-01-28 09:33:21 -08:00
Simon Michael
4ee39e039b
doc: integrate CLI help & manual for remaining commands
...
& rename HelpTemplate -> CommandDoc
2019-01-28 05:43:49 -08:00
Simon Michael
6566ef5fa2
add: fix breakage when creating file, ignore backslash in names line
2019-01-26 20:57:44 -08:00
Simon Michael
157ec857d4
refactor hledgerCommandMode
2019-01-26 20:57:00 -08:00
Simon Michael
6947f29f17
bal: integrate CLI help & manual
2019-01-26 17:22:48 -08:00
Simon Michael
64d78f1644
add: integrate CLI help & manual
2019-01-26 17:13:44 -08:00
Simon Michael
53620d0df2
act: integrate CLI help & manual
2019-01-26 17:07:30 -08:00
Simon Michael
f68309b106
acc: integrate CLI help & manual
2019-01-26 17:01:55 -08:00
Simon Michael
d1411fbd8d
embedded files comment
...
[ci skip]
2019-01-26 16:39:36 -08:00
Simon Michael
817497f30b
doc: force a line break after command names in new command docs
...
[ci skip]
2019-01-26 16:33:51 -08:00
Simon Michael
2df8a6c4de
doc: regen manuals
2019-01-26 15:56:43 -08:00
Simon Michael
550aa408eb
lib: refactor, add embedFileRelative
2019-01-26 15:52:58 -08:00
Simon Michael
4f8153cf82
hereFileRelativeToPackage -> hereFileRelative
2019-01-26 15:34:17 -08:00
Simon Michael
17cd5b2254
doc: update changelogs
...
[ci skip]
2019-01-26 11:35:08 -08:00
Simon Michael
0a31ef848f
doc: update changelogs
...
[ci skip]
2019-01-26 11:31:39 -08:00
Simon Michael
1e5e30ae87
regen cabal files
...
[ci skip]
2019-01-25 18:33:39 -08:00
Simon Michael
d517aef702
doc: changelogs: drop unnecessary backslashes before #*_<>$
...
sed commands:
s/\\#/#/g;
s/\\\*/*/g;
s/\\_/_/g;
s/\\</</g;
s/\\>/>/g;
s/\\\$/$/g;
[ci skip]
2019-01-25 18:30:09 -08:00
Simon Michael
7b67876a80
doc: changelogs: convert to clean pandoc markdown
...
pandoc options:
-f markdown-auto_identifiers
-t markdown-header_attributes-fenced_code_attributes --atx-headers --wrap=preserve
[ci skip]
2019-01-25 18:23:36 -08:00
Simon Michael
01c6f3e665
doc: changelogs: rename to CHANGES.md
...
These have been an adhoc mixture of plain text, markdown and org, and
used in each mode at different times. They will now have a definite
format, which for now is markdown. Org was another contender.
[ci skip]
2019-01-25 18:12:33 -08:00
Simon Michael
49a6e5715d
doc: changelogs: some fixes to markdown markup
...
[ci skip]
2019-01-25 18:08:24 -08:00
Dmitry Astapov
f6e5b3d438
lib: make --auto work on --forecast transactions
2019-01-25 12:53:59 -08:00
Dmitry Astapov
f2aaaf3310
lib, cli: merge --show-unbudgeted into --empty
2019-01-25 12:53:09 -08:00
Simon Michael
08c0d83593
close: generated unpriced balance assertion amounts ( #824 )
2019-01-25 11:55:09 -08:00
Simon Michael
f320345699
close: refactor
2019-01-25 10:23:01 -08:00
Simon Michael
67dde9d4ae
doc: regenerate manuals, removing some smart typography
...
[ci skip]
2019-01-24 15:37:40 -08:00
Dmitry Astapov
5711cdf9ba
cli: added --transpose to "balance" command
2019-01-24 15:06:35 -08:00
Dmitry Astapov
f3366c7256
lib: fix behavior of nested budgets and --show-unbudgeted
2019-01-24 14:56:22 -08:00
Dmitry Astapov
56553ede69
cli: if abs(return on investment)<0.01% display it as zero
2019-01-24 13:36:11 -08:00
Simon Michael
f7c22f97dc
refactor: simplify addonCommandMode
2019-01-23 17:26:27 -08:00
Simon Michael
b2c1e0b0ac
close: doc tweaks
...
[ci skip]
2019-01-23 17:26:27 -08:00
Simon Michael
fcb33c4f0c
close: fix ghci build / make build working-dir-independent again
2019-01-23 17:26:27 -08:00
Simon Michael
50175a9698
close: fix regular build, note path issue breaking ghci
2019-01-22 14:33:20 -08:00
Simon Michael
ede41af4c8
close: fix and document some newline issues
...
[ci skip]
2019-01-22 14:10:37 -08:00
Simon Michael
a29b70c93f
update generated manuals
...
[ci skip]
2019-01-22 13:36:11 -08:00
Simon Michael
cc7c3928fb
doc: begin integrating commands' CLI help and manual section
...
Just the close command to start with.
2019-01-22 13:33:24 -08:00
Simon Michael
763903ebda
journal: save account directives' comments, tags, declaration order
2019-01-18 16:40:35 -08:00
Simon Michael
7b47fb608e
close: use exact, minimal amounts; ensure assertions pass ( #941 )
2019-01-16 14:57:59 -08:00
Simon Michael
a0b0fedd31
add files command to commands list
2019-01-14 22:01:42 -08:00
Simon Michael
e120e261bd
import: if there's nothing to import, be quiet
2019-01-08 15:34:19 +00:00
Simon Michael
3cf21190c0
update embedded manuals
2019-01-05 07:35:54 +00:00