Commit Graph

2074 Commits

Author SHA1 Message Date
Simon Michael
78baaee6c5 lib: more version helpers, rename to HledgerBinaryInfo, silence warnings 2025-04-25 09:36:38 -10:00
Simon Michael
06cd0f9472 lib: exitOnExceptions -> exitOnError 2025-04-25 08:32:47 -10:00
Simon Michael
d1e4d00b8d lib: Cli,UI,WebOptions: export binaryinfo 2025-04-25 08:26:14 -10:00
Simon Michael
d3af9f0217 ;doc:check: edits 2025-04-24 11:27:28 -10:00
Simon Michael
d37000726d ;doc:check: edits 2025-04-24 11:13:29 -10:00
Simon Michael
650901901f ;doc:check: edits 2025-04-24 10:53:44 -10:00
Simon Michael
0d6023b812 ;doc:balance: edits 2025-04-24 09:59:27 -10:00
Simon Michael
8705b935de imp:setup: output tweaks 2025-04-23 22:50:19 -10:00
Simon Michael
eec803f19b imp:setup: more setup tests; improve logic, output 2025-04-23 21:43:30 -10:00
Simon Michael
03589e294b lib: make getConf total; add getConf' 2025-04-23 21:43:30 -10:00
Simon Michael
6cf40a76d1 lib: parseHledgerVersion: also save the package version as text 2025-04-23 11:00:49 -10:00
Simon Michael
cd6288a8eb imp:setup: output tweaks 2025-04-22 19:12:16 -10:00
Simon Michael
b0b081f20d imp:setup: check account type declarations
Begin analysing account type declarations (finally).
Setting up account types when getting started is just a bit too complicated
to be easily understood or easily documented.
Making that easy is one of the goals for the setup command.
2025-04-22 19:02:05 -10:00
Simon Michael
f39b34184e lib: and setup: robust parsing of hledger --version output 2025-04-22 17:02:44 -10:00
Simon Michael
2288f5193d fix:setup: refactor, fix a case not returning installed version 2025-04-22 09:06:27 -10:00
Simon Michael
6b5be96d27 imp:setup: improve config file tests, run only when supported 2025-04-22 08:53:43 -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
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
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
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
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
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
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
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
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
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