Simon Michael
9fa22e0398
account aliases (and regexReplace) now support backreferences
2014-10-29 07:46:49 -07:00
Simon Michael
21ed3dc73d
balance: support CSV for multi-column balance reports
2014-10-23 05:11:48 -07:00
Simon Michael
9d1ef010ac
finish previous commit
2014-10-21 17:49:41 -07:00
Simon Michael
9416d12d8a
--output -> --output-file/-o & --output-format/-O, refactor
...
Use two options and less surprising behaviour. Notes:
* a recognised suffix on the output file name can set the format
* but --output-format always wins
* -o - means stdout
* currently these are command-specific options on balance, print, register
* later, --output-file should become a global option
* and --output-format should be available at least on all commands which
support multiple formats. Each command may support a different set of
output formats, which should be listed in its command line help.
2014-10-21 17:14:37 -07:00
Simon Michael
b6774f47a3
balance, print: add -o and CSV output here too
...
Not very elegant yet, but works.
2014-10-21 12:02:23 -07:00
Simon Michael
2dc44cb131
register command cleanups
2014-10-21 12:01:47 -07:00
Simon Michael
b542da133c
cli: add csv dependency
2014-10-20 13:09:41 -07:00
Simon Michael
d234663b6d
register: add -o/--output option, merge CSV functionality (cf #206 )
2014-10-20 13:04:36 -07:00
Simon Michael
301f506486
the --format option shall be known as "line format"
2014-10-20 13:03:44 -07:00
Simon Michael
0620ec9840
fix redundant compilation in the hledger packages, at last
...
This seems to work well now with my haddock and GHC 7.8.
Not tested with GHC 7.6 though.
2014-10-19 09:37:18 -07:00
Simon Michael
f4842726e0
tools: fix warnings in simplebench
2014-10-19 09:34:46 -07:00
Simon Michael
6d67bcb026
cli: --version shows "dev build" when VERSION is undefined
...
Probably only noticeable in GHCI.
2014-10-18 12:36:27 -07:00
Simon Michael
e8a58d9388
cli: add a hidden --version+ flag showing number representation ( #118 )
2014-10-18 12:35:58 -07:00
Simon Michael
84a90374b4
make build warnings consistent
2014-10-18 10:16:22 -07:00
gwern
d1618aaca8
strip trailing whitespace from all Haskell files
2014-10-14 18:48:24 -07:00
Simon Michael
5d403c2bb7
doc: changelogs (resolve conflicts)
...
Conflicts:
hledger-lib/CHANGES
hledger-web/CHANGES
2014-09-12 18:41:35 -07:00
Simon Michael
d7f1733243
remove text upper bound, allowing 1.2+ ( fixes #207 )
2014-09-12 18:36:23 -07:00
Simon Michael
776a973d2c
cli: clarify --debug help
2014-08-08 19:12:20 -07:00
Simon Michael
aa85e786b9
register: describe datespans briefly, like balance
...
Eg instead of 2014/01/01 - 2014/01/31, show 2014/01, as in a multicolumn
balance report. The data model is not very elegant, but works for now.
2014-08-08 07:34:11 -07:00
Simon Michael
f631e8e063
register: --average implies --empty
...
The -A flag now enables -E, so that with a report interval the averages
are always per-period and not per-report-line. (Without a report
interval, -E is already the default).
2014-08-07 14:03:56 -07:00
Julien Moutinho
ec243a1bea
data: fix unit test by ignoring sourcepos
2014-08-07 17:48:04 +02:00
Julien Moutinho
a6190420b2
data: add source location to transactions
2014-08-07 16:38:44 +02:00
Simon Michael
40ab1e17f6
amounts cleanups, and support zeros with commodity
2014-07-28 18:45:13 -07:00
Simon Michael
7fb154f820
balance: include report span in title
2014-07-26 17:29:20 -07:00
Simon Michael
ca43eab47a
balance: simplify multicolumn report titles slightly
2014-07-26 17:09:29 -07:00
Simon Michael
b499ea85eb
register: optimise postingsReportItemAsText a bit
...
Avoid concatTopPadded when rendering register output, making that
command faster when there's a lot of output.
2014-07-07 08:37:27 -07:00
Simon Michael
3a16e6cfc7
mostly replace slow regexpr with regex-tdfa ( fixes #189 )
2014-07-06 14:03:28 -07:00
Simon Michael
16f8b78305
balance: show multi-commodity amts on one line ( fixes #186 )
...
To avoid totally breaking the layout of multicolumn balance reports when
there are multi-commodity balances, these are now rendered on a single
line, comma separated. Simple balance reports still use the old vertical
format for now.
2014-07-03 07:45:55 -07:00
Simon Michael
3669422bbf
make --width and --debug require an argument ( fixes #149 )
...
This is a workaround for a cmdargs limitation. Having "--debug 2"
or "--width 100" produce no output (because the number is parsed
as a separate argument) is too annoying.
2014-07-03 07:31:52 -07:00
Simon Michael
330dfe6891
commodity & amount style parser cleanups, part 2
2014-07-02 17:41:33 -07:00
Simon Michael
0c3148ac7b
add an --ignore-assertions flag
...
Can be helpful when reading Ledger files, where assertions may have
different semantics; or for getting some answers from your journal
to help you fix your assertions.
Could be called --no-assertions, but this might create surprise when it
has an effect contrary to --no-new-accounts.
I had to add another flag throughout the parsers & journal read
functions, ok for now.
2014-07-01 18:26:37 -07:00
Simon Michael
34f4800e82
Revert "remove Setup.hs files again, fixing a yesod devel warning"
...
Setup.hs are required by the Hydra buildbot.
This reverts commit 97ab3db8f0 .
2014-05-24 13:39:09 -07:00
Simon Michael
97ab3db8f0
remove Setup.hs files again, fixing a yesod devel warning
...
These were removed and re-added in 2011 because "hackage needed them".
Let's try again.
2014-05-23 09:04:00 -07:00
Simon Michael
6b059aeb5e
Merge branch 'rdesfo-0.23'
...
Conflicts:
.version
hledger-lib/Hledger/Read/CsvReader.hs
hledger-lib/hledger-lib.cabal
hledger-web/hledger-web.cabal
hledger/hledger.cabal
2014-05-22 16:15:35 -07:00
Ryan Desfosses
b60da51386
made the following changes to resolve deprecated warnings:
...
replaced hamletToRepHtml with giveUrlRenderer
updated type RepHtml to Html
replaced settingsPort with setPort
2014-05-21 07:30:54 -04:00
Ryan Desfosses
38f977fa48
Histogram: fixes previous change
...
change made in Histogram:cabal test and hlint warning
2014-05-14 12:18:50 -04:00
Ryan Desfosses
47853d6df6
Cli: cabal test and hlint warnings
2014-05-11 20:19:36 -04:00
Ryan Desfosses
342bae8c35
Histogram: cabal test and hlint warnings
2014-05-11 19:27:39 -04:00
Simon Michael
fc7acea381
Merge branch 'master' of github.com:rdesfo/hledger into rdesfo
...
Conflicts:
README.md
2014-05-08 14:44:53 -07:00
Simon Michael
2bba4dbe3c
update changelogs
2014-05-08 14:35:20 -07:00
Simon Michael
3113e09a62
bump version to 0.23.2
2014-05-08 14:32:29 -07:00
Simon Michael
6d93fe15d3
update changelogs
2014-05-08 14:32:06 -07:00
Ryan Desfosses
39479638e3
Option: cabal test and hlint warnings
2014-05-07 22:34:41 -04:00
Simon Michael
ec48926a38
update changelog
2014-05-07 16:49:44 -07:00
Simon Michael
4b1714a9e0
bump version to 0.23.1
2014-05-07 16:44:44 -07:00
Simon Michael
6d6aae3cc9
update changelog
2014-05-07 16:43:32 -07:00
Simon Michael
120b3b8377
add: don't apply a default commodity to amounts on entry ( fixes #138 )
2014-05-07 16:37:22 -07:00
Simon Michael
09ebd3e049
cli: options before the add-on are also passed to it ( fixes #182 )
2014-05-07 16:37:22 -07:00
Simon Michael
41add3ffeb
oh fine still cant do that, bump to 0.23.98
2014-05-03 17:18:12 -07:00
Simon Michael
87f1e83d78
bump version to 0.24dev
2014-05-03 15:51:57 -07:00