Commit Graph

274 Commits

Author SHA1 Message Date
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
Simon Michael
969dea72ae ;bin:justfile: make more chooser friendly, add help/pick/view 2023-07-07 13:11:11 -10:00
Simon Michael
0fabbc3b32 ;bin:justfile: fix/cleanups 2023-07-07 08:16:15 -10:00
Simon Michael
67e5a453a0 ;bin: add a justfile (conversion of ft and tt) 2023-07-06 15:52:41 -10:00
Simon Michael
c0bd0d2979 ;doc:bin: fix tt link 2023-07-06 08:57:26 -10:00
Simon Michael
d221be1959 ;doc:bin:ft: updates 2023-07-06 08:53:44 -10:00
Simon Michael
0d641ad2b9 ;doc:bin:tt: updates 2023-07-06 08:39:52 -10:00
Simon Michael
519b305627 ;doc:bin: ft/tt updates 2023-07-06 08:19:16 -10:00
Simon Michael
27e5739de5 ;doc:bin: ft/tt updates 2023-07-06 08:15:13 -10:00
Simon Michael
8088fa714e ;doc:bin: link ft and tt 2023-07-06 08:10:57 -10:00
Simon Michael
37206aba5a ;bin: ft, tt reporting scripts (examples) 2023-07-06 08:06:05 -10:00
Simon Michael
5e55258e59 ;bin: bar: help tweak 2023-05-23 17:14:47 -10:00
Simon Michael
78e088d982 ;examples: add a more up-to-date CSV/scripts makefile in examples/csv/ 2023-05-10 23:24:06 -10:00
Simon Michael
0fe9c2f215 ;doc: bin: fix link name (2) 2023-05-09 13:03:41 -10:00
Simon Michael
fc11cd6ce0 ;doc: bin: fix link name 2023-05-09 13:02:07 -10:00
Simon Michael
705c1bec93 ;fix: hledger-bar: detect non-interactive output properly for ANSI 2023-05-09 11:30:46 -10:00
Simon Michael
c5b2465fb0 ;imp: hledger-bar: disable ANSI if terminal is non-interactive 2023-05-06 16:25:51 -10:00
Simon Michael
765742ab9c ;doc: bin: cleanup 2023-04-28 14:26:14 -10:00
Simon Michael
de25142345 ;doc: bin: hledger-fifo -> hledger-lots 2023-04-28 14:21:18 -10:00
Simon Michael
315df53c56 ;doc: bin: hledger-bar example 2023-04-22 20:36:36 -10:00
Simon Michael
93ee092ab7 ;doc: bin: hledger-bar: update 2023-04-20 20:29:12 -10:00
Simon Michael
eba95fb38b ;bin: bar: cleanups 2023-04-20 14:44:29 -10:00
Simon Michael
3165d4d897 bin: hledger-bar - simple bar charts in the terminal 2023-04-20 12:58:08 -10:00
Simon Michael
2fbf3423de ;doc: bin: note scripts are not required 2023-03-31 05:57:13 -10:00
Simon Michael
c2e7cc5700 pkg: update stackage resolvers, extra deps 2023-03-10 18:58:22 -10:00
Simon Michael
82be50902a ;doc: bin/README: updates 2023-02-21 16:46:34 -10:00