Simon Michael
895a52b745
;bin: remove obsolete _FLAGS marker from help
2024-12-07 08:51:44 -10:00
Simon Michael
81d20ecaf8
;tools: revert to ghc 9.8.2 for now
...
running these with ghc 9.10 is awkward
2024-12-03 09:13:14 -10:00
Simon Michael
645da4a74f
;pkg: bump to latest stackage snapshot
2024-12-02 17:13:28 -10:00
Dmitry Astapov
1fefbe9159
;bin: fix build errors in all scripts
2024-10-11 14:55:35 -10:00
Simon Michael
45b862f84f
;dev: bump to latest stackage nightly
2024-09-28 08:39:06 -10:00
Simon Michael
08a356a7cb
;dev: pkg: bump to latest nightly stackage snapshot
2024-09-09 14:03:35 -07:00
Simon Michael
e9a52b4b9c
;bin: bashrc: also define TIMEDOT
2024-09-04 15:30:38 +01:00
Simon Michael
bafe70efb4
;doc: scripts and add-ons: edits
2024-08-12 11:59:41 +01:00
Simon Michael
aa7a38f586
;doc: update stack doc urls
2024-08-12 11:55:06 +01:00
Simon Michael
a0c8237697
;doc: scripts and add-ons: edits
2024-08-12 11:40:59 +01:00
Simon Michael
b352a5e281
;doc: scripts and add-ons: edits
2024-08-12 11:36:58 +01:00
Simon Michael
1fd6fbb4f7
;doc: scripts and add-ons: edits
2024-08-12 11:10:13 +01:00
Simon Michael
6670c465d1
;doc: scripts and add-ons: edits
2024-08-12 11:06:11 +01:00
Simon Michael
397a464aeb
;doc: bin readme/Scripts and add-ons: rewrites, list add-ons again
2024-08-12 11:00:54 +01:00
Simon Michael
d6b905fa08
;bin: bashrc: updates
2024-08-12 08:48:42 +01:00
Simon Michael
a22901a983
;bin: bashrc updates
2024-08-06 18:12:52 +01:00
Simon Michael
1f880f39bd
;bin: drop silly diff alias
2024-08-04 19:16:22 +01:00
Simon Michael
098acb422b
;tools: make justfiles compatible with just 1.28+
2024-07-14 09:44:54 +01:00
Simon Michael
06f5075b6b
;doc: bin/README, Scripts page: justfile -> Justfile
2024-07-12 14:21:33 +01:00
Simon Michael
0d878415e9
;pkg: stack: bump to latest nightly; bump various script snapshots
2024-07-12 12:45:00 +01:00
Simon Michael
7020ed3023
;bin: bashrc: add years, eachyear scripts
2024-07-06 17:25:22 +01:00
Simon Michael
cc1797253e
bin: simplebal: ignore config files
2024-07-06 17:12:08 +01:00
Simon Michael
321cdca918
;bin: shell aliases cleanup
2024-07-06 06:58:16 +01:00
Simon Michael
84da054baf
;bin: shell aliases cleanup
2024-07-06 06:53:44 +01:00
Simon Michael
cf0c7c2ef8
;bin: hledger-script-example: explain shebang commands better
2024-07-02 13:34:48 +01:00
Simon Michael
f847ef63e2
;fix: bin: register-max: update/fix
2024-06-25 07:45:27 +01:00
Simon Michael
9cdf435c0e
;bin: add hledger-pricehist (alias for pricehist)
2024-05-02 18:44:21 -10:00
Simon Michael
65e01d900a
;bin: add hledger-txnsbycat.hs
2024-04-03 15:00:53 -10:00
Colin Dean
4c15cfb275
fix: correct to inherit_errexit in hledger-bar
...
I misread something and apparently whatever test I used didn't fail because what's there now is not valid at all.
2024-02-17 20:54:30 -10:00
Simon Michael
ca55c2f0f8
dev: rename other Price helpers to Cost
...
showAmountWithoutPrice -> showAmountWithoutCost
mixedAmountStripPrices -> mixedAmountStripCosts
showMixedAmountWithoutPrice -> showMixedAmountWithoutCost
showMixedAmountOneLineWithoutPrice -> showMixedAmountOneLineWithoutCost
2024-01-23 21:35:06 -10:00
Simon Michael
323f87b3e9
dev: Amount: aprice -> acost
...
Acked-by: Simon Michael <simon@joyful.com>
2024-01-23 21:35:06 -10:00
Simon Michael
e201775e93
dev: amountStripPrices -> amountStripCost
2024-01-23 21:35:06 -10:00
Colin Dean
2ac0905c70
dev: Runs shellcheck on hledger-simplebal
...
Shellcheck handled the variable fixups. The pipefail flag avoids another
Shellcheck warning w.r.t. handling pipe failures. This script is so
minimal that it's safe to simply fail the pipe entirely if the hledger
command fails.
2024-01-23 06:30:32 -10:00
Colin Dean
4faa381ccd
fix: Run shellcheck on hledger-bar
...
I [encountered][1] an unexpected error when testing hledger-bar for
proposed inclusion in Homebrew's default installation of hledger:
/opt/homebrew/Cellar/hledger/1.32.2_1/bin/hledger-bar: line 81:
conditional binary operator expected
I'm doubt that this is fixed by running shellcheck, but checking
a script against shellcheck is usually one of the first things I check
before debugging shell!
This patch is ~generated by shellcheck with
shellcheck --shell=bash --enable=all --format=diff bin/hledger-bar | \
git apply
plus some extra, manual additions in the form of a shellcheck directive
to accept something that's a little abnormal for shellcheck but fine
here. The `set -o inherit_exit` was also recommended by shellcheck.
[1]: https://github.com/Homebrew/homebrew-core/actions/runs/7606843601/job/20713321881?pr=160590
2024-01-22 18:16:47 -10:00
Simon Michael
bd8bd393f2
;fix:hledger-bar: really fix the error when NO_COLOR is not defined [ #2159 ]
...
Also, it's now more compliant with the no-color.org spec:
Command-line software which adds ANSI color to its output by default
should check for a NO_COLOR environment variable that, when present
and not an empty string (regardless of its value), prevents the
addition of ANSI color.
so one can now temporarily override $NO_COLOR=1 in the environment by
setting it empty: NO_COLOR= hledger ...
2024-01-22 12:40:48 -10:00
Simon Michael
0f30316cfd
;bin:hledger-bar: fix an error when NO_COLOR is not defined [ #2159 ]
2024-01-22 11:28:13 -10:00
Simon Michael
d8addd5926
;bin:hledger-bar: fix a shellcheck warning
2024-01-22 10:29:47 -10:00
Simon Michael
3b6d00ff9a
;doc:scripts:sortandmergepostings: edit
2024-01-06 14:01:28 -10:00
Simon Michael
6b2cb5124a
;doc:scripts:sortandmergepostings: give a little more context
2024-01-06 13:56:51 -10:00
Simon Michael
0c85b48d2c
;doc: use ``cli not
``shell for command-line examples
2023-11-26 08:30:04 -10:00
Simon Michael
32d9deb3e1
;bin:bar: cleanup
2023-11-21 09:27:26 -10:00
Simon Michael
24ce9b5be1
;bin:report1: cleanups
2023-10-24 13:38:08 +01:00
Simon Michael
c195e35572
;bin:report1: cleanups
2023-10-23 19:29:32 +01:00
Simon Michael
15e76488e3
;bin: link hledger-report1 scripts
2023-10-23 19:13:52 +01:00
Simon Michael
da774bd708
;bin: hledger-report1: a custom compound report in haskell and bash
2023-10-23 19:07:52 +01:00
Simon Michael
f157720fa3
;bin:justfile: rename forecast.journal, forecast-import refinement
2023-10-19 11:17:57 +01:00
Simon Michael
dadb904b04
;doc:examples/bin: add gsheet-csv.hs
2023-10-14 06:09:34 +01:00
Simon Michael
ae8f9dd232
;doc:justfile: update import, time report scripts
2023-10-14 05:59:20 +01:00
Simon Michael
0e98f73e30
dev:cli: merge Hledger.Cli.Main with Hledger.Cli
2023-10-04 10:03:35 +01:00
Simon Michael
b6325e067e
;bin: tt,ft comment
2023-09-11 10:07:52 +01:00