Commit Graph

299 Commits

Author SHA1 Message Date
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
Simon Michael
caa8b4871e ;doc: bin/README: edits 2023-02-21 12:18:04 -10:00
Simon Michael
8e34c5253c ;doc: bin/README: tweak 2023-02-21 00:39:38 -10:00
Simon Michael
3ee2f59b57 ;doc: reorganise bin/README & the Scripts page 2023-02-21 00:16:15 -10:00
Simon Michael
e4c6e83ed1 ;doc: bin/README: separate hledger-edit, hledger-lot entries 2023-02-20 22:28:41 -10:00
Simon Michael
6a9f2b5745 ;doc: bin/README: add hledger-fifo, improve hledger-utils 2023-02-20 22:05:41 -10:00
Simon Michael
02b673e516 ;bin: git: tweak help, add commit -n example 2023-02-20 16:25:36 -10:00
Caleb Maclennan
7c34f08580 doc: bin: Document new AWK contrib script usage 2023-02-09 23:33:22 -10:00
Caleb Maclennan
1f088324c6 feat: bin: Add AWK script to sort postings and merge duplicates
Co-authored-by: Murukesh Mohanan <murukesh.mohanan@gmail.com>
2023-02-09 23:33:22 -10:00
Simon Michael
a37da26ee9 ;bin: hledger-git: record: better error output 2023-02-03 19:07:28 -10:00
Simon Michael
ae26ae6294 ;bin: hledger-git: status command also shows diffs 2023-02-02 21:12:16 -10:00
Simon Michael
1e1b26261d ;fix: bin: hledger-git: add short command aliases r, s, l 2023-02-01 13:30:21 -10:00
Simon Michael
e986bdf2d5 ;fix: bin: hledger-git: fix -h; pass unrecognised commands to git 2023-02-01 13:30:21 -10:00
Simon Michael
c477c59247 ;fix: bin: hledger-git: don't forcibly add ignored files 2023-02-01 13:30:21 -10:00
Simon Michael
c8c920cbe0 ;fix: bin: hledger-git: fix status command 2023-02-01 13:30:21 -10:00
Simon Michael
5ad1aab288 ;bin: rename hledger-script-example.hs; use fewer imports and deps 2023-01-29 16:57:14 -10:00
Simon Michael
b49b760497 ;bin: a version of hledger-register-max using a newer API
This one uses Hledger.Cli.Script to reduce import boilerplate,
and supports --help.
2023-01-29 16:29:58 -10:00
Simon Michael
6589b506ed ;bin: register-max: tweaks 2023-01-29 08:14:15 -10:00
Simon Michael
173985dbfc ;bin: register-max: show multiple postings, better layou 2023-01-29 08:03:47 -10:00
Simon Michael
7f8f98707d ;bin: register-max: cleanup 2023-01-29 07:12:16 -10:00
Simon Michael
dc8e0f66de ;bin: register-max: don't add -H by default 2023-01-29 06:58:52 -10:00
Simon Michael
82abb00754 ;bin: register-max 2023-01-29 06:43:42 -10:00
Simon Michael
b15d8d214d ;doc: scripts: hledger-utils: show install command, mention hledger-plot 2023-01-14 12:04:54 -10:00
Yann Büchau
18f264595b ;doc: Add hledger-utils with 'hledger edit' to docs 2023-01-05 09:21:44 -10:00
Patrick Fiaux
b3de7e59af fix: cli: updates hledger-git record command to use plain git
This fixes the issue in https://github.com/simonmichael/hledger/issues/1942.
Instead of relying on a `git record` alias being present `hledger git record`
uses only vanilla git.

The expected alias for record is:
```
record = ! sh -c '(git add -p -- $@ && git commit) || git reset' --
```

The removed `git record` is in the script is implemented using:
- `git commit` with the given messages (and additional arguments if given)
- `git reset` if the commit fails

`git add -p` isn't needed because the files are added already above. Also
this would be interactive which isn't the goal for this call.

The message still defaults to the date if not given, however I had to add
a check to only shift if arguments were passed in, otherwise shift fails.
2022-11-26 08:51:00 -05:00
Simon Michael
ba773e3fe9 dev: bump to stackage lts-20.1 2022-11-25 23:44:46 -05:00
Simon Michael
fc8c85931c bin: move: improve help 2022-11-10 19:01:41 -10:00
Simon Michael
a6cc98521d feat: bin: watchaccounts 2022-10-27 11:24:45 -10:00
Simon Michael
25c9083d0d ;bin: move: docs fix 2022-10-07 14:45:44 -10:00
Simon Michael
8f06cefab4 bin: hledger-move, helps make subaccount/cost-preserving transfers 2022-10-07 14:28:04 -10:00
Simon Michael
5c0baef9ae bin: hledger-addon-example: help text tips 2022-10-07 06:34:34 -10:00
Simon Michael
3cda526c5a stack: bump to 2022-09-01 resolver 2022-09-01 15:30:33 -07:00
Simon Michael
c80c72d7cd dev: lib, cli, bin: enable/fix name shadowing warnings
And a few other cleanups.
2022-08-23 12:16:15 +01:00
David D Lowe
f5680529cd Fix broken link in bin/README.md 2022-08-15 03:34:40 +01:00
Simon Michael
950c85cad7 dev: bump to latest stackage, ghc 9.2.4 2022-08-07 19:11:17 +01:00
Simon Michael
8b121bcf74 ;feat: bin: hledger-check-postable 2022-08-02 16:22:05 +01:00
Simon Michael
d7f3e8b50c ;doc: bin: edits 2022-07-25 18:26:32 +01:00
Simon Michael
d00827a2fc ;doc: bin: more cleanups 2022-07-25 09:02:07 +01:00
Simon Michael
cb6fceb50b ;doc: bin: cleanups; categorise scripts 2022-07-25 04:28:46 +01:00
Simon Michael
da2b8f5f34 ;doc: move add-ons list to manual > COMMANDS; cleanups 2022-07-25 03:31:05 +01:00
Simon Michael
860cccad70 imp: bin: hledger-addon-example.hs script template 2022-07-24 12:08:43 +01:00
Simon Michael
bb95693779 doc: bin/README: tweaks 2022-07-24 11:59:05 +01:00
Simon Michael
a160395eac doc: bin/README: update & publish as new Scripts page 2022-07-24 11:33:12 +01:00
Simon Michael
e8c934ab33 bin: paypaljson, paypaljson2csv - download txns from paypal API 2022-06-10 12:52:02 +01:00
Stephen Morgan
9155d679fe fix!: Revert "fix!: utf-8: Use with-utf8 to ensure all files are read and written with utf8 encoding. (#1619)"
This reverts commit e233f001c5.

This would break at least some people's workflow. A lighter touch is
probably sufficient.
2022-06-01 09:35:18 +10:00
Stephen Morgan
e233f001c5 fix!: utf-8: Use with-utf8 to ensure all files are read and written with utf8 encoding. (#1619)
May also fix #1154, #1033, #708, #536, #73: testing is needed.

This aims to solve all problems where misconfigured locales lead to
parsers failing on utf8-encoded data. This should hopefully avoid
encoding issues, but since it fundamentally alters how encoding is dealt
with it may lead to unexpected outcomes. Widespread testing on a number
of different platforms would be useful.
2022-05-22 13:12:19 +10:00
Simon Michael
2bf18540c2 ;bin: drop old tests 2022-04-21 21:33:28 -10:00
Simon Michael
e30634e6ad bin: readme: cleanup 2022-04-20 23:36:58 -10:00
Simon Michael
c783ebcee6 bin: hledger-simplebal.sh -> hledger-simplebal 2022-04-20 23:36:43 -10:00
Simon Michael
a7d4c3ad1e bin: hledger-git, hledger-pijul 2022-04-20 23:23:36 -10:00
Simon Michael
7440075903 ;bin: hledger-number.sh -> hledger-simplebal.sh 2022-04-20 18:58:38 -10:00
Simon Michael
5e735b4faf scripts: bin: exclude non-executable files 2022-04-05 10:05:04 -10:00
Simon Michael
326a314052 scripts: tweak 2022-04-05 09:31:26 -10:00
Simon Michael
6d02e9ef57 bin: aliases.sh -> bashrc, added fin/bin/gnused/gnudate 2022-04-05 09:19:38 -10:00
Stephen Morgan
28b52fcca5 fix: bin: Remove old function in hledger-print-location. 2022-03-26 15:35:19 -10:00
Stephen Morgan
603b2e9f09 ref: Use ExceptT String IO a instead of IO (Either String a).
This increases composability and avoids some ugly case handling. We
re-export runExceptT in Hledger.Read.

The final return types of the following functions has been changed from
IO (Either String a) to ExceptT String IO a. If this causes a problem,
you can get the old behaviour by calling runExceptT on the output:
readJournal, readJournalFiles, readJournalFile

Or, you can use the easy functions readJournal', readJournalFiles', and
readJournalFile', which assume default options and return in the IO
monad.
2022-03-25 14:23:27 -10:00
Stephen Morgan
852ba7b100 fix: bin: Get hledger-print-location working. 2022-03-10 16:56:46 -10:00
Simon Michael
5a0d61998a bin: check-fancyassertions: add docs to --help output 2022-02-10 08:20:54 -10:00
Simon Michael
0317f71c05 ;tools: changelog: move to tools/ 2022-01-01 08:25:16 -10:00
Simon Michael
09009cbb1c ;tools: bump resolver in more places 2021-12-16 13:34:59 -10:00
Simon Michael
16124eba14 dev: move commitlint to tools, keeping bin/ for user tools 2021-12-10 16:52:19 -10:00
Simon Michael
580ce7af46 bin: hledger-number tweak 2021-12-02 10:58:21 -10:00
Simon Michael
50142a0aec bin: hledger-number 2021-12-02 10:54:23 -10:00
Simon Michael
d2081e5d8f ;tools: changelog: updates 2021-11-26 21:06:40 -10:00
Simon Michael
8464fed4f6 ;tools: changelog: a silly tool that makes changelog work more pleasant 2021-11-26 12:31:36 -10:00
Pranesh Prakash
b7e79ef3b2
Update description of hledger-check-tagfiles.hs
Made it clear that it's a `/` and not "containing / exist" (i.e., containing or exist).
2021-11-23 03:10:05 +05:30
Stephen Morgan
1bc04685b7 pkg: Drop base-compat-batteries dependency.
Our supported stackage versions are now new enough that we don't need
any of the compatibility features anymore.
2021-10-31 07:56:07 -10:00
ShrykeWindgrace
72e94f4d80 ; imp: use megaparsec's prettyprinter for assertion parse errors 2021-10-31 07:40:37 -10:00
Stephen Morgan
e53e95540e ci: Recognise any commit starting with ‘Merge’ as a merge commit, which
is ignored by commitlint.
2021-09-27 09:40:24 -10:00
Stephen Morgan
04c35e1519 fix: bin: Allow hledger-check-fancyassertions to parse predicates (#1464). 2021-09-08 13:19:31 -10:00
Stephen Morgan
8fcdc22a45 fix: bin: Get scripts compiling with current hledger-lib. 2021-09-08 13:19:31 -10:00
Stephen Morgan
b7bf780c52 dev: hlint: Avoid use of reverse.
Note that this is semantically different, and will produce different
results. In particular, the sort is now stable, i.e. account names with
the same balance will not have their order reversed relative to each
other. In this context there doesn't seem to be a reason to prefer one
order to the other, so I'm making this change.
2021-08-27 06:13:56 -10:00
Stephen Morgan
d248aec313 cln: hlint: Remove eta reduce warnings. 2021-08-27 06:13:56 -10:00
Stephen Morgan
8bf7c95697 cln: hlint: Clean up Functor related hlint warnings, and NOINLINE warning. 2021-08-27 06:13:56 -10:00
Stephen Morgan
21e62ffcbd cln: hlint: Remove unless and $> warnings. 2021-08-27 06:13:56 -10:00
Stephen Morgan
e13239386f cln: hlint: Clean up == and elem related hlint warnings. 2021-08-27 06:13:56 -10:00