Commit Graph

12814 Commits

Author SHA1 Message Date
Simon Michael
e0cbe65d9b ;tools: Shake txtmanuals: silence all but wide table warnings 2024-06-27 00:24:09 +01:00
Simon Michael
d35e4bde11 ;doc: cli: fix some manual warnings 2024-06-27 00:24:09 +01:00
Simon Michael
6aa1bbc18a ;doc: --debug help tweak 2024-06-26 23:24:41 +01:00
Simon Michael
26978ffc26 imp: config file: sample: simplify 2024-06-25 18:37:55 +01:00
Simon Michael
b8706dee56 ;doc: config files: edits 2024-06-25 18:37:55 +01:00
Simon Michael
5f285a56ab doc: update manuals 2024-06-25 18:37:55 +01:00
Simon Michael
d9f314dfa3 ;doc: update help 2024-06-25 18:37:55 +01:00
Simon Michael
9a89adf737 ;tools: Shake cmddocs: improve help 2024-06-25 18:37:55 +01:00
Simon Michael
5c45963a07 ;doc: config files 2024-06-25 18:37:55 +01:00
Simon Michael
40620666f8 imp: cli: rename --rules-file to --rules; tweak options help
For brevity, and consistency with --conf.
--rules-file remains supported, as a hidden option.

hledger's main mode now supports the hidden legacy flags,
as the command modes do.
2024-06-25 18:37:55 +01:00
Simon Michael
5739bff249 imp: config file: --conf, --no-conf/-n, improve debug output 2024-06-25 18:37:55 +01:00
Simon Michael
6180a162b2 imp: config file: also try parent dirs 2024-06-25 18:37:55 +01:00
Simon Michael
f89e62cb6f imp: config file: also try home and XDG config dirs 2024-06-25 18:37:55 +01:00
Simon Michael
d76677c6ad imp: config file: don't require -- before addon-specific opts 2024-06-25 18:37:55 +01:00
Simon Michael
361b0016ff fix: cli: ensureDebugFlagHasVal: fix multiple --debug flags not just one 2024-06-25 18:37:55 +01:00
Simon Michael
66f4091b38 fix: cli: don't let a valueless --debug flag eat the command name 2024-06-25 18:37:55 +01:00
Simon Michael
6c294e91d6 fix: ui, web: accept valueless --debug flag again 2024-06-25 18:37:55 +01:00
Simon Michael
0c9b704bcc fix: config file: pass only post-cmd and cmd-specific conf opts to addons 2024-06-25 18:37:55 +01:00
Simon Michael
3345adb2fc dev: refactor: cli main procedure 2024-06-25 18:37:55 +01:00
Simon Michael
969b5a89d1 dev: comment parsing tests/refactoring, fix indented timedot comments 2024-06-25 18:37:54 +01:00
Simon Michael
713c3f4067 imp: TimedotReader: trace parsing at debug level 9 2024-06-25 18:37:54 +01:00
Simon Michael
b3e648a2db feat: config file: rename/update sample config 2024-06-25 18:37:54 +01:00
Simon Michael
6b24c09a58 feat: config file: ignore unsupported general options; refactor 2024-06-25 18:37:54 +01:00
Simon Michael
3797fe13d3 imp: move --debug to help flags, making it more universal 2024-06-25 18:37:54 +01:00
Simon Michael
e1991be46f feat: config file: add a real parser, support command-specific options 2024-06-25 18:37:54 +01:00
Simon Michael
4175dc50ac ;cabal: update cabal files 2024-06-25 18:37:54 +01:00
Simon Michael
f5c2ec681c dev: refactor: merge Text.Megaparsec.Custom into Hledger.Utils.Parse 2024-06-25 18:37:54 +01:00
Simon Michael
07a4b21620 dev: refactor: move emptyorcommentlinep'; hlint 2024-06-25 18:37:54 +01:00
Simon Michael
46cda5e7de imp: cli: allow command options to be written before the command also
It's clearer to write command-specific flags after the command name
argument, but that's no longer required.
(Writing non-builtin, addon-specific flags after -- is still required).

Also, give up on "obey help/doc/version flags even if there's a bad
command/flag", it's too hard to do well.
2024-06-25 18:37:54 +01:00
Simon Michael
570a5472e2 dev: cli: refactor/clarify main procedure and command line processing 2024-06-25 18:37:54 +01:00
Simon Michael
204df22739 feat: cli: basic config file support for hledger
And some refactoring of command line parsing code.

General options only, in ./hledger.conf, for now.
2024-06-25 18:37:54 +01:00
Simon Michael
6c47fa034a ;dev: update doctests for weekly headings change [#2204] 2024-06-25 18:36:43 +01:00
Simon Michael
a734ba5026 ;dev: update tests for weekly headings change [#2204]
Unfortunately our ci workflow does not reliably detect commit messages
with PRs, and in this case it wrongly identified the commit as a
harmless doc change.
2024-06-25 09:06:29 +01:00
Simon Michael
831b4638cb ;tools: just twih: date fixes 2024-06-25 07:45:27 +01:00
Simon Michael
007f2eba15 ;tools: just ghci: -fobject-code was a mistake, keep everything interpreted
Note: stack clean --full wasn't enough to reset things after removing
this flag, rm `fd -e o -e hi` was needed.
2024-06-25 07:45:27 +01:00
Simon Michael
f847ef63e2 ;fix: bin: register-max: update/fix 2024-06-25 07:45:27 +01:00
Simon Michael
49c4ccd0b7 dev: Hledger.Utils.IO: fix hlint warnings 2024-06-25 07:45:27 +01:00
Victor Mihalache
60efd035f5 imp: abbreviate week naming for weekly reports 2024-06-14 09:37:32 +01:00
Simon Michael
83bd98076a ;doc: box-drawing: edits 2024-06-12 18:39:27 +01:00
Simon Michael
aa5bca04d3 ;doc: box-drawing: edits 2024-06-12 18:36:10 +01:00
Simon Michael
2916b12651 ;doc: mention --pretty's new border-enabling behaviour 2024-06-12 18:24:32 +01:00
Simon Michael
de617ec91b imp: balcmds: improve html output; refactor
The Total: row headings are now configurable in one place,
and currently disabled for text output and enabled for csv & html.

The balance commands' HTML output no longer repeats the "total" and
"Net" headings when the totals row has multiple lines.
And the layout has been improved and made more consistent with the
text output.
2024-06-12 18:04:56 +01:00
Simon Michael
85dde3bac9 dev: refactor: balance report rendering 2024-06-12 15:28:51 +01:00
Simon Michael
1b4b079f4d imp: balcmds: with --pretty, show table and inter-column borders 2024-06-12 05:02:08 +01:00
Simon Michael
574115e001 imp: balcmds: csv, html output: change "total" row header to "Total:" 2024-06-12 05:02:08 +01:00
Simon Michael
9788a06223 fix: balcmds: don't repeat "total" and "Net:" headers in HTML output 2024-06-12 05:02:04 +01:00
Simon Michael
1a242c1264 dev: refactor table rendering code
- Consolidate some table rendering helpers in Balance.hs
- Rename, document for clarity
- Extract parameters for controlling table borders
- hlint suggestions
2024-06-12 05:01:48 +01:00
Simon Michael
1260a68596 dev: CompoundBalanceCommand: refactor table rendering 2024-06-12 05:01:48 +01:00
Simon Michael
9d6cb0f969 tools: functest: try again to reduce rebuilding/slowdowns when testing
--fast is always fighting with my non-fast builds and defeating the purpose.
--threads 64 was making my macbook air m1 stutter, 32 seems better.
2024-06-12 05:01:48 +01:00
Simon Michael
5b83e5c2f0 ;dev: cleanup [#2202] 2024-06-10 08:46:19 +01:00