Closed reesmichael1 closed 4 months ago
Great, thank you!
I had a few thoughts but they're not too important; I'm inclined to merge this and maybe (or not) do a followup PR or tweaks at some point.
Our csv reader is really a Character Separated Values reader, it can handle any separator character. I guess these changes don't disrupt with that; for other characters the .csv
extension or csv:
prefix should be used, as before.
Clarified https://hledger.org/dev/hledger.html#data-formats a little.
Cool, thanks! I was also thinking about clarifying those docs in the shower this morning, but looks like you beat me to it :grinning:
With these changes,
hledger
now supports using thessv:
andtsv:
prefixes to determine the file separator. For example:Some notes from my end:
hledger
, but if this is too wide-reaching a change, it would be straightforward to use something likeRaw String
, which would in turn beRaw "journal"
,Raw "timeclock"
, etc., for everything except the CSV/etc. files.CsvReader.hs
suggest that it should be possible to pass the rules file as an argument and have the data file be inferred. However, I wasn't able to figure out how to do this, either with stockhledger
or with my build. This means I very well might have broken this feature. Could you please share how this is supposed to work so I can verify if it still functions?ssvtest.sh
, which is mostly a copy ofcsvtest.sh
, but I wasn't immediately sure how else to avoid thecsv:.*.csv
pattern used incsvtest.sh
.