Commit Graph

5365 Commits

Author SHA1 Message Date
Simon Michael
b9571bd088 bal/bs/cf/is: consistently separate columns with a double space
Previously, amounts wider than the column headings would be separated
by only a single space. Also there was an extra space before the first
column.
2017-07-27 09:09:03 -07:00
Simon Michael
ae312d83df install: hledger-iadd 1.2.3 (cf #591)
[ci skip]
2017-07-27 05:06:25 -07:00
Simon Michael
8851ebc29f bs/cf/is: support --output-file and --output-format=txt|csv
The CSV output should be reasonably ok for dragging into
a spreadsheet and reformatting.
2017-07-25 19:43:45 -07:00
Simon Michael
71b206dfc5 lib: writeOutput clarification 2017-07-25 16:04:00 -07:00
Simon Michael
7204b1b9a1 lib: make output-file and output-format flags available separately
Kind of.. the output-file flag's help mentions output-format
2017-07-25 16:03:59 -07:00
Simon Michael
f49756231a refactor compoundBalanceCommandMultiColumnReport etc. 2017-07-25 16:03:59 -07:00
Simon Michael
9d1ef30ecb install: bump hledger-diff version (and installer version)
This should fix hledger-diff being reinstalled every time.

[ci skip]
2017-07-25 14:32:37 -07:00
Simon Michael
48d909c695 refactor compoundBalanceCommandMultiColumnReport etc., more correct docs 2017-07-25 14:28:52 -07:00
Simon Michael
5d93c39922 clarify balance report/cumulative/historical/tree mode shenanigans 2017-07-25 13:55:54 -07:00
Simon Michael
783c4c155c whitespace 2017-07-25 13:51:26 -07:00
Simon Michael
a25a8f868c bs/is: fix tests 2017-07-25 13:23:16 -07:00
Simon Michael
f0119ec9c1 refactor compoundBalanceCommand 2017-07-25 13:22:03 -07:00
Simon Michael
115ed3aead bs/is: show a trailing blank line in single column reports, for consistency 2017-07-25 12:46:56 -07:00
Simon Michael
9d4d6ebc4d bs/cf/is: show one trailing blank line, not two 2017-07-25 12:43:56 -07:00
Simon Michael
11202c897a bs: merge pretty.test 2017-07-25 09:33:43 -07:00
Simon Michael
c89bec0e17 bs/is: don't let an empty subreport disable the grand totals (fixes #588) 2017-07-25 09:21:09 -07:00
Simon Michael
083df72582 refactor: BalanceCommand -> CompoundBalanceCommand
More verbose, but also more precise.
2017-07-25 09:21:09 -07:00
Simon Michael
d4f09efc95 refactor balanceCommand 2017-07-25 09:21:09 -07:00
Simon Michael
117ab0ca4c refactor: BalanceView -> BalanceCommandSpec, cleanups 2017-07-25 09:21:09 -07:00
Simon Michael
5fca083ad2 BalanceView wording, mention case insensitivity 2017-07-25 09:21:09 -07:00
Simon Michael
422e0923f1 refactor BalanceView 2017-07-25 09:21:09 -07:00
Simon Michael
9b9a1a7a30 help: mention -h & output options in default output 2017-07-24 22:19:57 +01:00
Simon Michael
8313695306 doc: journal: update sample in generated manuals 2017-07-24 22:19:25 +01:00
Simon Michael
0df616cdfe site: contributing: link hledger-iadd
[ci skip]
2017-07-24 06:31:47 +01:00
Simon Michael
05afdb0be1 finance: latest gratipay txns
[ci skip]
2017-07-22 18:58:01 +01:00
Felix Yan
70b14c2518 Allow vty 5.16
It builds and works fine here.
2017-07-21 09:37:01 +01:00
Simon Michael
cb693cd7ca stack: bump recommended resolver to lts-8.23
[ci skip]
2017-07-21 09:35:34 +01:00
Simon Michael
7e9e29a942 site: download: recommend the install script; cleanups 2017-07-21 09:33:07 +01:00
Simon Michael
f20592e10c install: doc tweaks, note resource usage
[ci skip]
2017-07-21 09:32:17 +01:00
Simon Michael
4db2897765 site: docs: get help -> get help/give feedback 2017-07-21 09:30:20 +01:00
Simon Michael
a1b62ec769 install: show own version properly when piped into bash
[ci skip]
2017-07-20 18:09:59 +01:00
Simon Michael
fabcda2132 install: more doc tweaks, show installer's version
[ci skip]
2017-07-20 09:08:21 +01:00
Simon Michael
9b6bad20a4 install: resolver notes
[ci skip]
2017-07-20 08:20:02 +01:00
Simon Michael
bf2e529228 install: many improvements
- install stack to $HOME/.local/bin for easier upgrade and passwordlessness
- install missing and out-of-date official and third party hledger tools
- try installing each tool individually
- try cabal install if cabal is installed and stack isn't
- always specify the resolver for stack install
- be fairly quiet by default, replace --quiet with --verbose
- --status shows installation status without doing anything
- --version shows installer version
- cleanup

[ci skip]
2017-07-20 07:53:43 +01:00
Simon Michael
ebd4be7b97 install: do require bash, for simplicity
Supporting generic sh would mean testing with at least bash and dash.
/bin/bash will pretty much be always available ?

[ci skip]
2017-07-19 08:57:29 +01:00
Simon Michael
8fb0b6886c api: show program name in --version output, like other tools
[ci skip]
2017-07-17 17:39:23 +01:00
Simon Michael
7d7c932a2d install: doc fixes
[ci skip]
2017-07-17 17:17:52 +01:00
Simon Michael
d0c2dec45e installer: start of an easy hledger installer script, based on stack's
[ci skip]
2017-07-17 16:46:42 +01:00
Simon Michael
45eeb06ebc bin: tags: remove unused import 2017-07-16 07:24:30 +01:00
Simon Michael
45e9c9d632 stack, site: update stack yaml files, sync with download page
[ci skip]
2017-07-16 07:24:13 +01:00
Nissar Chababy
53ea4f9135 Update Arch Linux command
`hledger` is is now part of Arch Linux [community] so it's now available directly from `pacman`
2017-07-16 07:02:45 +01:00
Simon Michael
395938932f site: download: include slower but more reliable explicit resolver flag
[ci skip]
2017-07-15 10:05:31 +01:00
Nicholas Niro
93fbc0e989 lib: Fix of a bug with the -H option.
This patch fixes a bug that happened when using the -H option on
a period without any transaction. Previously, the behavior was no
output at all even though it should have shown the previous ending balances
of past transactions. (This is similar to previously using -H with -E,
but with the extra advantage of not showing empty accounts)
2017-07-15 08:02:03 +01:00
Nicholas Niro
f0914ff08e lib: Added a new much more thorough test to MultiBalanceReports.
This test makes sure that -H works correctly and it does not show
empty accounts.
2017-07-15 08:02:03 +01:00
Nicholas Niro
9873bcfcba lib: Added a new transaction to samplejournal.
The new entry effectively adds a loan which is placed in the checking account.
This loan is then closed by the "pay off" transaction (which was already
present).

This is mainly to be used as a test point for the -H option; to make
sure -H does not show empty accounts.

All previous tests were changed to reflect the new change.
The documentation of the journal module was updated too.
2017-07-15 08:02:03 +01:00
Nicholas Niro
a7f6b551c5 lib: Implemented a testing context for the module MultiBalanceReports.
Of the 2 tests, the first is a simple test on a specific period.
The second is expected to fail at this point until the new upcoming
code to fix the issue with the history option is implemented.

For the record : this issue happens when we use the -H flag for a period
that does not contain any transactions. Currently, the ending balance
values are only taken into account if the current period contains
a Transaction containing one of the previous populated accounts.

For example, if we have a statement on the 2008/01/01 for $1
and we do a command (with -H) to check the value on the
(without transactions) 2008/01/02, we will not get the $1 from
2008/01/01. In that same example, if we had a transaction for the same
account as 2008/01/01 in say 2008/01/03 then the -H command would
successfully show the statement from 2008/01/03 with the initial amount
that we set in 2008/01/01.
2017-07-15 08:02:03 +01:00
Nicholas Niro
fe2a1b35da lib: Added 2 new tests to BalanceReport.
These tests verify the behavior when we input a very specific period.
The second test is meant to make sure that the new upcoming code in
MultiBalanceReports will not change anything in the behavior of
the module BalanceReport.
2017-07-15 08:02:03 +01:00
Nicholas Niro
a204908be6 lib: Added a comment to explain the type MultiBalanceReportTotals 2017-07-15 08:02:03 +01:00
Simon Michael
5079727f3b site: download: note sierra/ghc issue, provide older ghc commands 2017-07-13 09:21:16 +01:00
Simon Michael
874f58ed9b site: download: note an issue when global resolver is too old 2017-07-13 08:50:46 +01:00