Commit Graph

5537 Commits

Author SHA1 Message Date
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
Simon Michael
711590cef6 site: download: streamline notes a bit 2017-07-13 08:45:09 +01:00
Simon Michael
e908d96fd9 bin: new hledger-tags addon, lists tags in matched transactions 2017-07-12 22:11:36 +01:00
Simon Michael
15e8d77968 tools: travis: skip the build if only markdown files are changed (2) 2017-07-12 07:54:56 +01:00
Simon Michael
f8674f46c0 tools: travis: skip the build if only markdown files are changed
Credit: tritoch at https://github.com/travis-ci/travis-ci/issues/6301#issuecomment-313559284
2017-07-12 07:41:06 +01:00
Simon Michael
1831f83a81 tools: appveyor: fix complaint
[travis skip]
2017-07-12 06:59:53 +01:00
Simon Michael
9e012ba30f site: link to appveyor artifacts dir
[ci skip]
2017-07-12 06:53:50 +01:00
Simon Michael
547868cadc site: download: less pleading
[ci skip]
2017-07-11 06:51:13 +01:00
Simon Michael
3f0b2524d6 site: download: sandstorm help wanted
[ci skip]
2017-07-11 06:27:40 +01:00
Simon Michael
5228171fa0 site: download: tweaks
[ci skip]
2017-07-11 06:00:24 +01:00
Simon Michael
46c0369bb8 site: download: better advertisement of windows/mac limitations
and remove debian limitation, I think it's resolved.

[ci skip]
2017-07-11 05:49:21 +01:00
Simon Michael
27ab22fc37 docs: readme: add appveyor badge
[ci skip]
2017-07-11 05:49:15 +01:00
Simon Michael
1b72d6c23c site: download, contributing: appveyor link tweaks #424
[ci skip]
2017-07-11 05:09:46 +01:00
Simon Michael
ef5476d8c3 tools: appveyor: note how ci skip works
[ci skip]
2017-07-11 04:59:37 +01:00
Simon Michael
0bc3f8f23e tools: appveyor: try preserving stack root cache more #424
[ci skip]
2017-07-11 04:51:24 +01:00
Simon Michael
4851000495 tools: appveyor: caching tweaks
[ci skip]
2017-07-11 04:33:42 +01:00
Simon Michael
337ab19190 site: download, contributing: link appveyor & binaries again #424
[ci skip]
2017-07-11 04:33:34 +01:00
Simon Michael
e9b6d0b9d0 tools: appveyor: more thorough -j1 workaround for permission error #424 2017-07-11 04:01:06 +01:00
Simon Michael
69c41cdd99 cli, help: usage tweaks
[ci skip]
2017-07-08 08:34:45 +01:00
Simon Michael
bd2d9b829c help: yet another manual tweak; update builtin manuals
[ci skip]
2017-07-08 08:15:33 +01:00
Simon Michael
ed47bc52ff help: update manual
[ci skip]
2017-07-08 08:06:52 +01:00
Simon Michael
5a033fad89 help: update manual
[ci skip]
2017-07-08 08:04:59 +01:00
Simon Michael
9938aa5e79 help: allow substring matching
[ci skip]
2017-07-08 07:37:15 +01:00
Simon Michael
5e69d6de84 help: use more standard names for tool manuals
[ci skip]
2017-07-08 07:36:52 +01:00
Simon Michael
6df81962ed cli, bin: mention -h in commands list and addons' usage messages
[ci skip]
2017-07-08 06:49:25 +01:00
Simon Michael
50977288bb doc: updates (#579) 2017-07-07 15:58:26 +01:00
Simon Michael
9195989979 doc: update builtin manuals 2017-07-07 15:42:22 +01:00
Simon Michael
9eb1520b6f help: add --info/--man/--pager/--cat flags, & choose best one by default (#579)
You can select a docs format/viewer with one of the `--info`, `--man`, `--pager`, `--cat` flags.
Otherwise, it will use info if available, otherwise man if available,
otherwise $PAGER if defined, otherwise less if available, otherwise it
prints on stdout (and always prints on stdout when piped).

Preferring info over man might not suit everyone.
2017-07-07 15:42:22 +01:00
Simon Michael
daa9550929 cli: fix -h/--help debug output (#579) 2017-07-07 15:42:16 +01:00