Simon Michael
6b5be96d27
imp:setup: improve config file tests, run only when supported
2025-04-22 08:53:43 -10:00
Simon Michael
3e8f3a4506
;doc:cli:changelog: consistent release headings
...
just rels now shows more release dates
2025-04-21 18:16:08 -10:00
Simon Michael
4529a8c4a1
imp: setup: smarter logic, more robustness
...
- Test the hledger in PATH, not the one running
- Handle old hledger versions as well as recent ones
- Handle errors, remove early terminations
2025-04-21 15:31:23 -10:00
Simon Michael
5334e7924b
lib: Hledger.Cli.Version: rename PackageVersionString, more helpers
2025-04-21 15:14:12 -10:00
Simon Michael
50a85fc5ca
dev: setup: cleanup
2025-04-20 16:13:28 -10:00
Simon Michael
8edef3345e
feat: setup command, checks hledger installation (Merge branch 'sm-setup')
...
Not yet finished, but it's useful and usable so far.
2025-04-20 10:54:26 -10:00
Simon Michael
f0ff2aa34e
imp: setup: show full --version output
2025-04-20 10:52:50 -10:00
Simon Michael
c3c91448a7
imp: setup: output tweaks
2025-04-20 10:52:50 -10:00
Simon Michael
a18a4c612d
imp: setup: get version from hledger.org, hackage is down
2025-04-20 10:52:50 -10:00
Simon Michael
580bc0a8f8
dev: setup: refactor output helpers
2025-04-20 10:52:50 -10:00
Simon Michael
8b48fc41bc
imp: setup: version check: improve error output when unknown
2025-04-20 10:52:50 -10:00
Simon Michael
97e2e8572f
imp: setup: version check: add a timeout, improve error output
2025-04-20 10:52:50 -10:00
Simon Michael
15173eeeb0
imp: setup: test default file setup
2025-04-20 10:52:50 -10:00
Simon Michael
4881a0deaa
;doc:setup
2025-04-20 10:52:50 -10:00
Simon Michael
75cd521ed7
imp:setup: drop unused options
2025-04-20 10:52:50 -10:00
Simon Michael
2ef7434f47
imp:setup: check files setup (WIP)
2025-04-20 10:52:50 -10:00
Simon Michael
d408f00b42
imp:setup: use HEAD instead of GET to check current version
2025-04-20 10:52:50 -10:00
Simon Michael
98da9709fc
imp:setup: config file tests; tidier more portable color-aware output
2025-04-20 10:52:50 -10:00
Simon Michael
bb7510194e
imp: setup: setup ignores the config file itself, for robustness
2025-04-20 10:52:50 -10:00
Simon Michael
daf550bbb0
imp: Hledger.Cli.Conf: refactor, expose more info about config files
2025-04-20 10:52:50 -10:00
Simon Michael
320d197735
imp:setup: more hledger setup tests
2025-04-20 10:52:50 -10:00
Simon Michael
525b30b76f
pkg: add req, http-client, http-types dependencies; begin HTTP support
...
hledger can now make HTTP requests over the network.
For now, it makes just one (in following commits):
checking Hackage for the current hledger release version.
2025-04-20 10:52:36 -10:00
Simon Michael
69232cae7a
feat: setup: first setup check: is hledger in PATH ?
2025-04-20 10:49:16 -10:00
Simon Michael
cff831c3c0
feat:setup: command skeleton
2025-04-20 10:49:16 -10:00
Simon Michael
c2592ea730
;doc:csv: fix link
2025-04-20 09:31:01 -10:00
Simon Michael
72f1a14bbd
;doc:csv: clarify CSV means DSV, and link to that instead
2025-04-20 09:26:06 -10:00
Simon Michael
29bca306ee
;doc: print: simplify [ #2368 ]
2025-04-18 18:50:41 -10:00
samahri
6bf9369cda
imp: add --location tag to print command [ #2368 ]
...
;fix: delete hledger-print-location, move doc to Print.hs>"print,other features"
2025-04-18 18:49:34 -10:00
samahri
588cab14f3
imp: add --location tag to print command [ #2368 ]
2025-04-18 18:49:34 -10:00
Simon Michael
f54677f5c0
;doc: boolean queries: edits
2025-04-18 15:27:00 -10:00
Simon Michael
9dd9a696d4
;doc: boolean queries: edits
2025-04-18 15:24:47 -10:00
Simon Michael
81238e5f27
feat: any:, all: queries allow more powerful transaction matching
2025-04-18 14:06:45 -10:00
Simon Michael
d13b334fb2
;doc:csv: How CSV rules are evaluated: clarify
2025-04-16 16:43:57 -10:00
Simon Michael
b54766c77a
;doc:csv: How CSV rules are evaluated: clarify
2025-04-16 16:41:07 -10:00
Simon Michael
5c3197dd42
;doc:csv: How CSV rules are evaluated: clarify
2025-04-16 16:29:53 -10:00
Simon Michael
15218a3d56
;doc:csv: How CSV rules are evaluated: clarify
2025-04-16 16:25:26 -10:00
Simon Michael
404edc3afd
;doc:csv: How CSV rules are evaluated: clarify
2025-04-16 16:05:51 -10:00
Simon Michael
ee3bd28711
;doc:csv: How CSV rules are evaluated: clarify
2025-04-16 10:32:50 -10:00
Simon Michael
bcc8471966
;doc:csv: How CSV rules are evaluated: clarify
2025-04-16 10:29:28 -10:00
Simon Michael
6aa072e1a4
;doc:csv: How CSV rules are evaluated: clarify
2025-04-16 10:16:28 -10:00
Simon Michael
df5d14628a
;doc:cli: adjust source to avoid disrupting markdown-mode outline
2025-04-16 08:40:58 -10:00
Simon Michael
57b13dab73
;doc:cli: fix hledger-iadd link
2025-04-12 14:33:15 -10:00
Simon Michael
9340b73aae
imp: improve/format errors for various failures [ #2367 ]
...
These now call error' and show errors in the standard style:
- reading a nonexistent data file
- reading an unsafe dotted file name on windows
- web: using --socket on windows
- demo: demo not found
- demo: error while running asciinema
- diff: bad arguments
- print --match: no match found
- register --match: no match found
- roi: no investment transactions found
2025-04-11 08:06:47 -10:00
Simon Michael
454c669fe4
fix:cli,ui,web: consistent console error output independent of GHC version [ #2367 ]
...
Hledger.Utils.IO helpers have been updated and new ones have been
added (exitOnExceptions, exitWithError) to allow consistent display of
program errors whether compiled with GHC <9.10, GHC 9.10, or GHC >9.10.
The trailing newlines added by GHC 9.10 are gone,
and so is the "uncaught exception" output added by GHC 9.12.
2025-04-11 08:06:47 -10:00
Simon Michael
9b6d3da677
;cabal: update cabal files
2025-04-09 10:58:54 -10:00
Simon Michael
ee3b6c29ce
;pkg: allow ghc 9.12
2025-04-09 10:58:52 -10:00
Simon Michael
bc16552e5d
;doc:csv:encoding: add hledger version info
2025-04-08 19:30:59 -10:00
Simon Michael
e57764f676
;doc: beancount output: edits
2025-04-05 03:43:29 -10:00
Michael Rees
62071bc4c2
feat: timeclock: Add support for multiple clocked in sessions ( #2141 )
...
We now support having multiple sessions clocked in. These are paired by
account name if given on the out entry, and otherwise an out closes the
most recent in entry.
Note that this breaks some backwards compatibility, in that we
previously ignored the description on the clock out entry. To mitigate
this, a new hidden flag --timeclock-old has been added, which reverts to
the old behavior.
2025-04-03 11:19:18 -10:00
Simon Michael
2ff2fd1594
;pkg: simplify LICENSE (try to fix github license detection)
2025-03-31 19:12:38 -10:00
Simon Michael
fb584e7e8b
;pkg: simplify LICENSE, add AUTHORS.md (try to fix github license detection)
2025-03-31 19:05:19 -10:00
Simon Michael
20226283b8
;pkg: tweak LICENSE files, try to get github to recognise
2025-03-31 18:18:10 -10:00
Simon Michael
47bb40f838
;pkg: clean up LICENSE files, main module licensing headers
2025-03-31 18:10:19 -10:00
Simon Michael
8d1a8d3799
;cabal: update cabal files
2025-03-31 17:40:30 -10:00
Simon Michael
ed6cef5c00
;pkg: clean up package.yaml files
...
Consistent layout.
Group metadata at the top in similar order to `cabal format`.
2025-03-31 17:25:41 -10:00
Simon Michael
775507c2d4
;pkg:cabal: specify GPLv3+ exactly; require cabal 2.2+ [ #2359 ]
...
Previously our cabal files used cabal-version 1.12, and were in theory
buildable with any ancient version of cabal. Now at least cabal 2.2
(or a version of stack built with with similar Cabal version) is
required to build hledger.
2025-03-31 16:55:36 -10:00
Simon Michael
b6ec245647
;cabal: update cabal files
2025-03-31 16:33:50 -10:00
Simon Michael
cb6a9b2f97
;pkg:cabal: update tested-with in all package.yamls
2025-03-31 16:27:40 -10:00
Thomas Miedema
bf3d1b6b49
;dev: extra >= 1.7.11 is required
...
Commit ff28aa32 introduced usage of Data.List.Extra.groupOnKey, which
first came with extra-1.7.11.
Fixes stack8.10.yaml build hopefully.
2025-03-31 16:18:09 -10:00
Simon Michael
fa4dbf45af
;doc:csv:encoding: edits [ #2354 ]
2025-03-30 10:09:45 -10:00
Simon Michael
b75f0ebd00
;fix:doc:csv:encoding: list accurate canonical encoding names [ #2354 ]
...
see also https://github.com/dmwit/encoding/issues/28
2025-03-30 10:02:59 -10:00
Simon Michael
6122366af1
;doc:Commands: fix commands link in TOC
2025-03-13 11:52:32 -10:00
Simon Michael
9521fead17
;doc:Commands: add run, repl, commands to TOC
2025-03-13 11:47:26 -10:00
Simon Michael
2a45cfa27b
;doc: fix update csv tutorial link
2025-03-13 11:16:39 -10:00
Simon Michael
efff1cfdb5
;doc: finalise changelogs for 1.42.1 on 2025-03-12
2025-03-12 21:35:24 -10:00
Simon Michael
be1e921dca
;doc: update changelogs
2025-03-12 21:35:24 -10:00
Stephen Morgan
8474c811c5
imp run: More successful cache hits with forecast
...
If forecast start and end dates are explicitly requested with
--forecast=, those parts of the reportspan_ can be replaced with the
forecast dates, meaning more successful cache hits.
2025-03-12 20:47:17 -10:00
Simon Michael
133560aa93
;dev: csv: no need to test for unsupported feature [ #2352 ]
2025-03-12 20:40:36 -10:00
Thomas Miedema
a8a0d3ee30
fix: csv: fix regression in parsing rules containing & ( #2352 )
2025-03-12 20:35:59 -10:00
Simon Michael
6f17d133dd
;imp:cli: improve help for --pretty
2025-03-09 08:16:38 -10:00
Simon Michael
6d47530ebc
;imp:cli: improve help for mutually exclusive valuation flags
2025-03-09 08:16:38 -10:00
Simon Michael
dbb85e3a9f
;doc:balance: "types" -> "modes"
2025-03-08 13:09:02 -10:00
Simon Michael
dcd5221489
;doc: update embedded manuals
2025-03-08 12:46:13 -10:00
Simon Michael
b31091195b
;doc: update command docs
2025-03-08 12:44:57 -10:00
Simon Michael
02ef6e45e7
imp:cli: make mutually exclusive flags clearer in --help
2025-03-08 12:42:16 -10:00
Simon Michael
a0afda4a2b
;doc:options: mention mutually exclusive flags
2025-03-08 11:20:21 -10:00
Dmitry Astapov
9963a01a15
run: do not pre-load journal(s) at the start of "run" [ #2345 ]
...
wait for the first command to do this. Same for "repl"
2025-03-08 09:55:59 -10:00
Dmitry Astapov
c0b3c932ea
;run: --forecast with changed reporting interval fix (+test) [ #2345 ]
2025-03-08 09:55:59 -10:00
Simon Michael
52d99ee1eb
;doc: update embedded manuals
2025-03-07 22:03:32 -10:00
Simon Michael
054e9561e4
;doc: update command docs
2025-03-07 22:03:09 -10:00
Simon Michael
44a4b79fa4
;doc:run, repl: more edits
2025-03-07 22:02:14 -10:00
Simon Michael
e53191049f
;doc: update embedded manuals
2025-03-07 21:38:14 -10:00
Simon Michael
f153d7f707
;doc: update command docs
2025-03-07 21:38:10 -10:00
Pranesh Prakash
2369f1338a
;doc:repl: updates
...
Corrected one small mistake, and changed a few other things for clarity.
Applied changes to the right file (Repl.md) this time.
2025-03-07 21:35:44 -10:00
Simon Michael
2274ea6ad6
;doc:changelogs, relnotes: fix
2025-03-07 21:32:08 -10:00
Simon Michael
f7aec96db1
;doc:changelogs: cleanups
2025-03-07 21:22:19 -10:00
Simon Michael
b9cd9981f7
;doc: update embedded manuals
2025-03-07 18:49:13 -10:00
Simon Michael
4e5506da1e
;cabal: update cabal files
2025-03-07 18:49:08 -10:00
Simon Michael
10c523c057
;pkg: set version to 1.42.99
2025-03-07 18:49:07 -10:00
Simon Michael
554b50f5b2
;doc:changelog: fix run/repl wording
2025-03-07 18:27:21 -10:00
Pranesh Prakash
fc2aabaab3
;doc:repl: updates
...
Corrected one small mistake, and changed a few other things for clarity.
2025-03-07 13:35:26 -10:00
Simon Michael
41e5a538b1
;pkg: clean up other cabal files, separating unrelated ghc options
2025-03-07 07:54:57 -10:00
Simon Michael
fd0bcdfede
;doc: finalise changelogs for 1.42 on 2025-03-06
2025-03-07 06:36:53 -10:00
Simon Michael
8184d20b9f
;doc: update changelogs
2025-03-07 06:36:15 -10:00
Simon Michael
7a3f69c5a1
;doc:repl: updates
2025-03-06 19:45:55 -10:00
Dmitry Astapov
a3d2c7bb58
;run: test that demonstrates caching
2025-03-06 16:43:39 -10:00
Simon Michael
a0cf410a80
;doc:run, repl: updates
2025-03-06 16:36:54 -10:00
Simon Michael
d65cdbef27
;doc: update embedded manuals
2025-03-06 16:15:22 -10:00
Simon Michael
3d1994ea76
;doc: add commands, repl, run to Commands section
2025-03-06 16:15:22 -10:00
Simon Michael
e25cd526b7
;doc: update embedded manuals
2025-03-06 16:05:55 -10:00