Commit graph

195 commits

Author SHA1 Message Date
John Kerl
f656d88325 miller 6.7.0-dev 2023-03-01 23:03:15 -05:00
John Kerl
79265e0fce miller 6.7.0 2023-03-01 22:37:58 -05:00
John Kerl
5965d46a1f
Support more backslashed special characters in DSL strings (#1212)
* BNF mod for `\^` `\$` et al.

* go.mod go.sum

* Update DSL-build instructions

* tools/build-dsl artifacts

* Unit-test updates

* fix build error

* unit-test files
2023-03-01 01:00:25 -05:00
John Kerl
6fc33c682a
--ofmte, --ofmtf, --ofmtg (#1206) 2023-02-27 22:50:46 -05:00
John Kerl
ee0ac3d7bb
New leftpad and rightpad DSL functions (#1205)
* Initial code for `leftpad` and `rightpad` functions

* typofix, and test cases

* doc-gen

* windows UT
2023-02-26 17:14:35 -05:00
John Kerl
f3fd2c2416
Complete #1181 (#1184)
* Source impl of #1181

* Full flow for #1181
2023-01-27 22:59:14 -05:00
Stephen Kitt
33c1712a3c
Add Go LICENSE file (#1171)
The go-csv files adapted from Go refer to the Go LICENSE file; this
patch adds the file.

Signed-off-by: Stephen Kitt <steve@sk2.org>

Signed-off-by: Stephen Kitt <steve@sk2.org>
2023-01-02 18:09:39 -05:00
John Kerl
a6055ef58e post-6.6.0 2023-01-01 17:17:28 -05:00
John Kerl
b1913c296d
6.6.0 (#1169) 2023-01-01 17:12:00 -05:00
John Kerl
31fdc1c3ed
Fix #1164: regression on CSV blank-line handling (#1168)
* Fix #1164: regression on CSV blank lines

* unit-test case
2023-01-01 16:49:14 -05:00
John Kerl
b518bf0fe5
mlr unspace verb (#1167)
* mlr unspace verb

* unit tests

* unit tests

* lint
2023-01-01 16:44:06 -05:00
John Kerl
7bf358e497
Fix #1102 (#1163) 2022-12-29 14:30:47 -05:00
John Kerl
a55e78c45a
Fix #1146 (#1157)
* Fix #1146

* added a doc link

* update unit-test case
2022-12-29 13:58:50 -05:00
John Kerl
472223c609
Fix typo in mlr put documentation (#1140)
* Fix typo

* Build artifacts from previous commit
2022-12-05 14:28:51 -05:00
Jakub Wilk
636ca8873d
Fix typos (#1135)
Co-authored-by: John Kerl <kerl.john.r@gmail.com>
2022-11-30 09:27:42 -05:00
John Kerl
d1b79c5231 Post-6.5.0 2022-11-27 13:19:29 -05:00
John Kerl
2ac27714d8 Miller 6.5.0 2022-11-27 12:48:33 -05:00
John Kerl
b6846fcd0f
Convert mlrval polymorphism from struct to unionish interface (#1133)
* Convert mlrval polymorphism from struct to unionish interface: arrayval/mapval/funcval

* Convert mlrval polymorphism from struct to unionish interface:: boolval

* Convert mlrval polymorphism from struct to unionish interface:: floatval

* Convert mlrval polymorphism from struct to unionish interface:: intval
2022-11-26 20:55:21 -05:00
John Kerl
1e6ae3fd1e
More mlrval size-reduction (#1132) 2022-11-26 11:13:53 -05:00
John Kerl
6f22401d53
Exclude median from summary default (#1131) 2022-11-26 10:34:28 -05:00
John Kerl
c4f1d519ed
Use int8 for mvtype (memory reduction) (#1130)
* Use int8 for mvtype (memory reduction)

* Try to get around codespell false positives
2022-11-26 00:34:25 -05:00
John Kerl
95be06b752 make fmt 2022-11-26 00:23:12 -05:00
John Kerl
a299ce22fe forgot to set between-releases version to 6.4.0-dev after 6.4.0 2022-11-03 15:30:30 -04:00
John Kerl
39286923dc
Don't double-quote a CSV field only for having a leading space (#1101)
* Don't double-quote a CSV field only for having a leading space

* unit-test case
2022-10-03 22:40:16 -04:00
John Kerl
36d0ed7608
type-safety in exec (#1099) 2022-09-29 10:11:35 -04:00
John Kerl
f131087713
Check -- terminator on --mfrom (#1098) 2022-09-28 00:30:05 -04:00
John Kerl
63db1a9059
mlr reshape multiple regex via multiple -r (#1091) 2022-09-05 22:05:54 -04:00
John Kerl
4a53a6b278
Fix labels for mlr histogram --auto (#1089) 2022-09-03 09:55:44 -04:00
John Kerl
abf58f4bb5
Restore --quote-all for CSV output (#1084)
* Restore --quote-all flag for CSV output

* make dev: for doc-build artifacts
2022-08-22 09:38:53 -04:00
John Kerl
a8cc3032dc
Restore the --jvquoteall flag (#1083)
* Restore --jvquoteall flag

* make dev: for doc-build artifacts

* unit-test file
2022-08-22 09:36:58 -04:00
John Kerl
0d6f330eda forgot to make a branch/PR for --quote-all 2022-08-22 09:25:09 -04:00
John Kerl
b27dcddfe3 Restore --quote-all flag for CSV output 2022-08-22 09:17:37 -04:00
John Kerl
a28554216a post-6.4.0 2022-08-20 21:30:12 -04:00
John Kerl
3c5cc37bdf
6.4.0 release (#1081)
* 6.4.0

* make dev for 6.4.0
2022-08-20 18:15:43 -04:00
John Kerl
dafec6dc09
mlr cat --filename / --filenum (#1080)
* mlr cat --filename / --filenum

* codespell
2022-08-20 08:42:15 -04:00
Matt Forrester
e55efbbfad
doc: fix docs for system/exec() (#1071)
Co-authored-by: Matthew Forrester <matthew.forrester@speechmarks.com>
2022-08-13 23:55:05 -04:00
Abirdcfly
17420e9594
delete unreachable test code caused by os.Exit (#1073)
Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-08-11 08:13:49 -04:00
John Kerl
c95c054c48
allow multi-line string literals in the DSL (#1070) 2022-08-09 08:51:44 -04:00
John Kerl
5ffb8a59b3 make dev after #1067 2022-08-07 00:40:44 -04:00
Matt Forrester
7a30f3552e
feat: system/exec() function call (#1067)
Co-authored-by: Matthew Forrester <matthew.forrester@speechmarks.com>
2022-08-07 00:36:53 -04:00
John Kerl
c1a1589174
Support simplified sort-map-by-value in the DSL (#1069)
* add shorthands for sorting maps by value

* unit-test files

* on-line help content
2022-08-07 00:31:08 -04:00
John Kerl
a64133250c
Fix natsort of empty strings; support mlr sort -rt same as -tr (#1068)
* mlr sort -rt == mlrt sort -tr

* fix natsort of empty strings
2022-08-06 23:10:09 -04:00
Fulvio Scapin
c9e0559cf6
[Docs] moving --xvright out of the FLATTEN-UNFLATTEN FLAGS section (#1065) 2022-08-01 09:53:40 -04:00
John Kerl
9b56162c96
Make PPRINT empty-string markers readable as such (#1059) 2022-07-17 00:07:12 -04:00
John Kerl
bbeeb92a37
Allow "\n" in mlr repl prompt (#1058) 2022-07-12 19:07:11 -04:00
John Kerl
ba349fe66f README-go-port.md -> README-dev.md 2022-07-12 17:15:06 -04:00
John Kerl
8bca869b68 update null_count for use in stats1 2022-07-12 01:27:04 -04:00
John Kerl
64b3cbfcfe
mlr summary verb (#1056)
* mlr summary verb

* doc content

* iterating on more summarizers; needs work as noted in the PR

* mlr summary with selectable accumulators

* code-review feedback

* iterating on transposed output

* extend unit-test cases

* doc extensions
2022-07-12 00:57:34 -04:00
John Kerl
6b32e1f419
Reduce number of os.Exit callsites, part 1 of n (#1055)
* neaten some uses of os.Exit

* iterating

* iterating

* iterating

* iterating

* iterating

* iterating

* iterating
2022-07-09 18:53:24 -04:00
luzpaz
42cd2ff7ad
Fix doc typo (#1054) 2022-07-08 09:25:22 -04:00