Repository navigation
stury 0.0.3
·
146 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Library
Record_Read(json and csv) reads each record of one type; CSV can now decode a stream one record at a time.csv.validate_recordslists every refused record, asjson.validate_recordsdoes (core.Record_Fault).csv.query,findandfind_columnanswer paths like JSON's (core.Answer), honouringduplicates.- One
Read_Optsper format (dialect,strictness,duplicates,limits, and CSV'sno_header, which
replacesheader) is taken before the allocator. The JSON edits takedialectbefore the allocator. - One read error:
scan,find,request_initandbuildreturnMaybe(Error);parse_pathandquery
returnMaybe(Path_Error).Scan_Error,Request_Error,Capacity,Parse_Error,Preparedand the
publicrender_error_to_writerare removed. - Renamed:
Encode_Error/Encode_OptstoMarshal_Error/Marshal_Opts; the csv destroy procedures are one
csv.destroy.core/bitsandcore/pathare folded intocore.json.records_fromand
json.Record_Readerare removed. - Refused instead of misread: an unknown tag flag or unspellable tag (
.Bad_Tag), an unsorted or overlapping
edit list (.Bad_Edit), aNumberwith no finite value inmarshal(.Non_Finite), a CSV cell that
underflows inget_float, and an edit of a CSV column name two columns share.
Command line
stury fmtformats or transcodes files, keeping every number, string, key and comment as written
(--check,--in-place).--csv,--tsv,--ndjsonand--jsoncare removed: use--fromand--to.- Parse errors at the end of the input name jq's column;
--seqreads its files as one stream;debugand
stderrlines flush in order with the output. - Windows: filter arguments are read as UTF-8,
-Ltakes an absolute path, andstrftimegives%s,%kand%l.