Simon Michael
4788bd9e41
lib: journalCommoditiesUsed
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
255e79c550
lib: Hledger.Read: more ways to read the default journal
...
defaultJournalWith, defaultJournalSafely, defaultJournalSafelyWith
2025-04-22 18:50:42 -10:00
Simon Michael
f39b34184e
lib: and setup: robust parsing of hledger --version output
2025-04-22 17:02:44 -10:00
Simon Michael
a13b7d2a82
lib: Hledger.Data.Dates.parsedate: also accept YYYYMMDD format; document
...
- Added support for unseparated dates, for convenience in ghci and for parseHledgerVersion
- Noted two user-facing uses: --value's argument, and import's .latest files.
YYYYMMDD dates will now also work there. Left this undocumented.
- Noted this is now more permissive, parsing many integers successfully; not expecting problems.
2025-04-22 16:59:57 -10:00
Simon Michael
98b40b2b0e
;dev: fix a warning
2025-04-22 12:26:55 -10:00
Simon Michael
32f2ef9b15
;doc:queries: fix the explanation of boolean queries and space-separated terms
2025-04-22 12:15:03 -10:00
Simon Michael
b7509030c5
lib: Hledger.Data.Dates: parsedateM -> parsedate
...
M makes me think of monad and is awkward to type for this common helper; Maybe is expected for a parser.
2025-04-22 10:40:41 -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
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
f37a4a7dcb
lib: refactor, export getHomeSafe
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