Commit Graph

5188 Commits

Author SHA1 Message Date
Justin Le
baf232d3d9 moved -V/--value to be a global report option, so it works with balance, print, register, balancesheet, incomestatement, cashflow, etc. 2017-02-04 16:38:18 -08:00
Justin Le
f47df67167 mapping function over journal amounts 2017-02-04 16:38:18 -08:00
Justin Le
573eda15e6 support all single-column balance features for balancesheet/incomestatement/cashflow 2017-02-04 16:38:18 -08:00
Justin Le
321ace107e BalanceView system implemented for incomestatement and cashflow 2017-02-04 16:38:18 -08:00
Justin Le
a6f98f1170 abstracting over balancesheet, incomestatement, and cashflow with BalanceView 2017-02-04 16:38:18 -08:00
Simon Michael
2e2a34261f stack: bump to latest lts & extra deps 2017-02-04 16:32:03 -08:00
Simon Michael
58c89127f8 ui: allow text-zipper 0.10 2017-02-04 16:32:03 -08:00
Simon Michael
fa388257d9 add MarketPrice module to other cabal sections #505 2017-02-04 16:32:03 -08:00
Justin Le
6bccb847d5 Added a simple 'showMarketPrice' function to show market price directives in a journal-compatible way (#505)
* added showMarketPrice and Hledger.Data.MarketPrice module

* showMarketPrice implemented using showDate

* attempted to add tests to Hledger.Data.MarketPrice

* moved MarketPrice test to Hledger.Read.JournalReader; fixed documentation on MarketPrice; added MarketPrice module to package.yaml
2017-02-03 18:20:00 -08:00
Simon Michael
3564c929e1 addons: fix compilation of rewrite by bin/compile.sh 2017-02-02 11:48:09 -08:00
Simon Michael
e7421eb31c doc: misc tweaks 2017-02-02 11:47:36 -08:00
Simon Michael
046b443da5 doc: cookbook: prices example 2017-02-02 11:46:25 -08:00
Simon Michael
a30583f6a1 allow megaparsec 5.2 #503 2017-02-01 16:24:37 -08:00
Simon Michael
761d912324 doc: docs page, cookbook tweaks 2017-02-01 16:24:37 -08:00
Bryan Richter
4890d2bf90 Escape account names (#499)
Fixes #498.
2017-01-30 09:17:18 -08:00
Simon Michael
7c5b97816e doc: cookbook: journal starting and version control recipes 2017-01-26 14:19:59 -08:00
Simon Michael
0395543719 doc: journal: market price doc tweak 2017-01-26 14:19:23 -08:00
Simon Michael
00a22792ff tools: fix gitignore of generated manuals 2017-01-26 11:54:59 -08:00
Simon Michael
d4654d46af doc: cookbook tweaks, simpler titles
Also drop the main heading from the big manual again,
it disrupted the TOC style.

[ci skip]
2017-01-26 09:51:14 -08:00
Simon Michael
4d91013182 doc: add main heading to combined manual & cookbook
[ci skip]
2017-01-26 09:51:08 -08:00
Simon Michael
2afc955f45 doc: cookbook: fix combined order
[ci skip]
2017-01-26 09:22:57 -08:00
Simon Michael
98d8909bfa site: cookbook: start collecting journal entries
[ci skip]
2017-01-26 09:15:03 -08:00
Simon Michael
6ed238a3d6 doc: regenerate built-in help
[ci skip]
2017-01-26 09:03:30 -08:00
Simon Michael
77c342f6e3 doc: ui, web: better screenshots layout in web manuals
[ci skip]
2017-01-26 09:02:46 -08:00
Simon Michael
ba1599cb97 doc: web: fix extra whitespace after synopsis in text manuals 2017-01-26 08:41:06 -08:00
Simon Michael
aafce634eb doc: fix macro that was hiding screenshots on hledger-ui web manual
[ci skip]
2017-01-26 08:36:29 -08:00
Simon Michael
3e054e4f86 doc: addon list tweaks
Are we done yet ?
[ci skip]
2017-01-26 08:25:03 -08:00
Simon Michael
0247ca9be1 doc: update addons intro
[ci skip]
2017-01-26 08:19:02 -08:00
Simon Michael
4ee496cc98 doc: separate & update addons list
[ci skip]
2017-01-26 07:28:56 -08:00
Simon Michael
60bf39da99 site: docs page cleanups
[ci skip]
2017-01-26 07:00:22 -08:00
Simon Michael
eadc92dd96 site: gitignore
[ci skip]
2017-01-26 07:00:13 -08:00
Simon Michael
e7d459a368 site: begin organising a cookbook 2017-01-26 06:40:50 -08:00
Simon Michael
f0ad41c49a site: drop obsolete manual-all.md 2017-01-26 06:39:37 -08:00
Simon Michael
f1ec6a6647 doc: regenerate hledger docs 2017-01-26 06:39:10 -08:00
Simon Michael
b7092f278b cli, addons: reduce boilerplate a little with hledgerCommandMode helper 2017-01-25 17:10:10 -08:00
Simon Michael
9f8e96d189 prices: update for latest options/help style 2017-01-25 16:36:49 -08:00
Michael Walker
66e33e0b0a Add hledger-check script. 2017-01-25 16:35:47 -08:00
Mykola Orliuk
0a8212bda3 equity: generate assertions 2017-01-25 14:45:54 -08:00
Mykola Orliuk
f3cb32a56f prices: new addon (#486) 2017-01-25 11:50:54 -08:00
Simon Michael
7fab8abd5d ui: fix a GenericSourcePos-related warning 2017-01-25 09:47:21 -08:00
Simon Michael
1f362101cc ui: addenda for #494 2017-01-25 09:42:10 -08:00
Peter Simons
e3d78fd0db hledger-ui: add support for brick 0.17 and vty 0.15 (#494) 2017-01-25 09:35:47 -08:00
Simon Michael
6859b94f4b cli: omit source addons from list when compiled version is present, again
Source and compiled versions of all addons in bin are cluttering up
the commands list. I think this was reasonably well behaved, so I'm
re-enabling it, possibly with a slight fix (.c shadowing .exe).
Some notes:

- when there's only one addon with its base filename, its extension is not displayed (as before)
- addons with (case insensitive) .exe extension or no extension are considered compiled
- when there's exactly two addons with the same base filename, and one of them looks compiled, only that one is kept
- modification time is not checked; an old compiled addon overrides a newer source version
- when there's more than two addons with same base filename, all are kept
2017-01-24 19:34:48 -08:00
Simon Michael
4b3d3fc2fa doc: move last addon docs out of hledger manual; add hledger-iadd
[ci skip]
2017-01-24 15:39:38 -08:00
Simon Michael
1fec6f624c addons, doc: consolidate addon docs in the scripts, rather than the hledger man page 2017-01-24 15:03:16 -08:00
Simon Michael
daf6732368 addons, doc: a new help scheme, more automated and usable
The previous cleanup defined long help separately from the usage text
generated by cmdargs. This meant keeping flag descriptions synced
between the two, and also the short help was often too verbose and
longer than the long help.

Now, the non-usage bits of long help are defined as pre and postambles
within the cmdargs mode, letting cmdargs generate the long help
including all flags. We derive the short help from this by truncating
at the start of the hledger common flags.

Most of the bundled addons (all but hledger-budget) now use the
new scheme and have pretty reasonable -h and --help output.
We can do more to reduce boilerplate for addon authors.
2017-01-24 09:27:43 -08:00
Simon Michael
f4eb9e23e3 addons: add -h & --help to most of them; CliOpts cleanups 2017-01-23 06:17:17 -08:00
Simon Michael
1218ca55f0 bin: don't list .dyn_* files after compile.sh on mac 2017-01-22 15:02:49 -08:00
Simon Michael
ee62d9eb79 rewrite: -> JournalSourcePos 2017-01-22 14:24:53 -08:00
Simon Michael
4221381f18 cli: "QUERY" instead of old "PATTERNS" in command help 2017-01-22 10:05:10 -08:00