John Kerl
2e3f0b3a2f
typofix
2026-02-22 13:05:08 -05:00
John Kerl
b10e6e3d34
Update performance numbers ( #1990 )
...
* wip
* re-run
2026-02-22 12:58:52 -05:00
John Kerl
8a84388b11
Add docs example on custom record-output formatting ( #1989 )
2026-02-22 12:45:45 -05:00
John Kerl
5815ab1cea
Add record-templating example to docs ( #1988 )
2026-02-22 12:01:03 -05:00
Andrea Borruso
fe491c0337
Add badge for DeepWiki to README ( #1986 )
...
If you put this badge in the main readme, you will have the fantastic Deepwiki wiki updated every week. I find it an excellent service.
While now the latest update is this: April 18, 2025 (121dd9)
2026-02-22 10:44:33 -05:00
John Kerl
cd39c4e1bd
make dev ater PR 1984 ( #1985 )
2026-02-21 23:24:20 -05:00
Balki
d9ee24460c
Add unicode printing support for barred output ( #1984 )
2026-02-21 23:15:03 -05:00
John Kerl
4535922db0
Update release docs
2026-02-21 09:44:23 -05:00
John Kerl
47ca5eb88a
Post-6.17.0
2026-02-21 09:40:15 -05:00
John Kerl
dc00aa3e16
Miller 6.17.0
2026-02-21 09:16:55 -05:00
John Kerl
8d85b46404
Follow-up for #1981 ( #1982 )
2026-02-18 10:25:21 -05:00
Stephen Kitt
f0a7c5832f
Performance and style fixes ( #1981 )
...
* Switch to integer ranges in for loops
Signed-off-by: Stephen Kitt <steve@sk2.org>
* Switch to slices functions where appropriate
A number of utility functions can be replaced outright; since Miller
can technically be used as a library, these are deprecated rather than
removed. go:fix directives ensure that they can be replaced
automatically.
Signed-off-by: Stephen Kitt <steve@sk2.org>
* Switch to reflect.TypeFor
This is slightly more efficient than TypeOf when the type is known at
compile time.
Signed-off-by: Stephen Kitt <steve@sk2.org>
* Switch to strings.SplitSeq instead of strings.Split
SplitSeq results in fewer allocations.
Signed-off-by: Stephen Kitt <steve@sk2.org>
* Drop obsolete build directives
Signed-off-by: Stephen Kitt <steve@sk2.org>
* Use min/max instead of explicit comparisons
Signed-off-by: Stephen Kitt <steve@sk2.org>
* Append slices instead of looping
Signed-off-by: Stephen Kitt <steve@sk2.org>
---------
Signed-off-by: Stephen Kitt <steve@sk2.org>
2026-02-18 09:19:31 -05:00
John Kerl
e8c4187e67
Fix: mlr -i nonesuch cat says mlr: empty IRS ( #1980 )
...
* Fix: `mlr -i nonesuch cat` says `mlr: empty IRS`
* fix experr
2026-02-17 15:30:28 -05:00
John Kerl
5c8c3b132a
Handle control-C in mlr repl ( #1979 )
2026-02-17 09:18:40 -05:00
John Kerl
1f459824f0
Handle control-C in mlr repl ( #1977 )
2026-02-16 17:17:30 -05:00
John Kerl
45d2104771
No exit from mlr repl when function is not found ( #1976 )
2026-02-16 17:07:22 -05:00
John Kerl
e1346691da
Improve error propagation ( #1975 )
2026-02-16 16:48:41 -05:00
John Kerl
1e762d7c4c
test/README.md ( #1972 )
2026-02-16 16:44:31 -05:00
John Kerl
5eb40c9e7b
Multiple style updates ( #1974 )
...
* Comment style
* IRecordTransformer -> RecordTransfomer
* make fmt
* else-return style mod
* snake-case -> camel-case
* Remove redundant err = nil and similar zero-value initializations.
* redundant break;
* bugfix
* neaten
* typofix
* simplify/standardize init of zero-length slices
* Standardize fmt.Fprintf w/ errors
* fix double print of "mlr:"
* neatening
* Uniformize error messages
* make docs
* avoid shadowing package names
* shorten some receiver names
2026-02-16 15:49:21 -05:00
John Kerl
a3b5d25933
Neaten some comments ( #1973 )
...
* comment-neaten
* comment-neaten
* more
2026-02-16 13:38:49 -05:00
dependabot[bot]
077cbf0d96
Bump golang.org/x/crypto from 0.40.0 to 0.45.0 ( #1971 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.40.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.40.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.45.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 11:17:53 -05:00
John Kerl
daae7ff7f0
Add DCF (Debian Control Format) as supported file type ( #1970 )
...
* reader
* record writer
* pkg/output/record_writer_dcf.go
* test/input/test.dcf
* test/cases/io-dcf/
* pkg/cli/option_parse.go
* make fmt
* make dev
* docs and `make dev`
2026-02-16 11:10:39 -05:00
dependabot[bot]
a5f4c9d895
Bump github/codeql-action from 4.32.2 to 4.32.3 ( #1969 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 4.32.2 to 4.32.3.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](45cbd0c69e...9e907b5e64 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 4.32.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 11:08:35 -05:00
John Kerl
6894ad3d56
Improve parsing of variable-length fractional seconds using strptime ( #1968 )
2026-02-15 16:43:44 -05:00
John Kerl
9399de5f6c
Fix strptime with zero-padded and non-zero-padded months/days ( #1967 )
...
* new test input
* first pass
* more tests
* iterating
* make fmt
2026-02-15 15:29:08 -05:00
John Kerl
271e558d4b
Fix bug with both %f and %z in strptime ( #1966 )
2026-02-15 14:51:42 -05:00
John Kerl
f375440bd4
Support YAML I/O ( #1963 )
...
* docs/src/proposal-yaml-io.md
* initial step
* Add `--y2c` etc
* test cases
* docs
* more testing
* more
* more test cases
* git rm docs/src/proposal-yaml-io.md
* make dev
* ylistwrap -> yarray
2026-02-15 09:24:38 -05:00
John Kerl
0003b83654
mlr split with --folder (#1962 )
2026-02-14 20:22:24 -05:00
John Kerl
26600f77aa
Add -r (for regex field-name matching) to mlr nest ( #1961 )
...
* initial attempt
* fix up cli flag
* make dev
2026-02-14 19:59:51 -05:00
John Kerl
5e0114e0cf
mlr reorder -r (#1960 )
...
* `mlr reorder -r`
* fix
* update test/cases/cli-help/
* make dev
2026-02-14 19:40:20 -05:00
dependabot[bot]
0b28e3d2c5
Bump golang.org/x/term from 0.39.0 to 0.40.0 ( #1958 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.39.0 to 0.40.0.
- [Commits](https://github.com/golang/term/compare/v0.39.0...v0.40.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-version: 0.40.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-10 09:57:44 -05:00
dependabot[bot]
df5512840b
Bump golang.org/x/text from 0.33.0 to 0.34.0 ( #1959 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.33.0 to 0.34.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.33.0...v0.34.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-10 09:44:42 -05:00
dependabot[bot]
d6d4364649
Bump github.com/klauspost/compress from 1.18.3 to 1.18.4 ( #1956 )
...
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress ) from 1.18.3 to 1.18.4.
- [Release notes](https://github.com/klauspost/compress/releases )
- [Commits](https://github.com/klauspost/compress/compare/v1.18.3...v1.18.4 )
---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
dependency-version: 1.18.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-09 09:17:12 -05:00
dependabot[bot]
f4ef52acd7
Bump golang.org/x/sys from 0.40.0 to 0.41.0 ( #1957 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.40.0 to 0.41.0.
- [Commits](https://github.com/golang/sys/compare/v0.40.0...v0.41.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-version: 0.41.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-09 09:17:05 -05:00
John Kerl
7271fb9de3
Format Go bits within mlr.bnf ( #1955 )
...
* step
* step
* step
* step
* step
* step
* step
* whitespace
* programmatic reformat
* BNF-formatter automation
* run tools/build-dsl
2026-02-07 15:45:48 -05:00
dependabot[bot]
441263095c
Bump github/codeql-action from 4.32.1 to 4.32.2 ( #1954 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 4.32.1 to 4.32.2.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](6bc82e05fd...45cbd0c69e )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 4.32.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-06 09:33:23 -05:00
dependabot[bot]
ca8146a13a
Bump github/codeql-action from 4.32.0 to 4.32.1 ( #1952 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 4.32.0 to 4.32.1.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](b20883b0cd...6bc82e05fd )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 4.32.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-03 08:52:57 -05:00
John Kerl
7a1943acdb
Resolve a few to-do comments in the source code ( #1951 )
...
* Resolve a few to-do comments in the source code
* more
* more
2026-02-01 18:14:20 -05:00
John Kerl
7da6f1453d
Replace list.List with Go slices ( #1950 )
...
* Add .vscode to .gitignore
* Replace `list.List` with slices
2026-02-01 17:22:28 -05:00
John Kerl
0f7f415974
Some performance tweaks ( #1949 )
2026-02-01 16:26:27 -05:00
John Kerl
e143857b70
Genericize lib.OrderedMap ( #1948 )
2026-02-01 16:08:43 -05:00
John Kerl
143ff7e20d
Deadstrip ( #1947 )
2026-02-01 15:44:08 -05:00
John Kerl
ced5e43065
Simplify the internal AST API ( #1946 )
...
* Simplify the internal AST API
* iterating
* iterating
* iterating
* iterating
* iterating
* iterating
* iterating
* iterating, bisecting
* mlr.bnf neatens
* update old/experimental .bnf files
* More AST method-name changes
2026-02-01 15:15:49 -05:00
John Kerl
18e5204513
Require that filter expressions be boolean (or absent) ( #1935 )
...
* Insist that filter expressions be boolean
* docs
2026-02-01 12:36:38 -05:00
John Kerl
e94ae5a87d
Timings misc ( #1945 )
2026-02-01 11:56:13 -05:00
John Kerl
96f13b6618
Internal function-name update
2026-01-31 16:35:30 -05:00
dependabot[bot]
2efd1d00d4
Bump actions/cache from 5.0.2 to 5.0.3 ( #1944 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](8b402f58fb...cdf6c1fa76 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-version: 5.0.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-29 09:19:01 -05:00
dependabot[bot]
26c8b73cab
Bump github/codeql-action from 4.31.11 to 4.32.0 ( #1943 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 4.31.11 to 4.32.0.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](19b2f06db2...b20883b0cd )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 4.32.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-27 09:34:04 -05:00
dependabot[bot]
f990a01a16
Bump github/codeql-action from 4.31.10 to 4.31.11 ( #1942 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 4.31.10 to 4.31.11.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](cdefb33c0f...19b2f06db2 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 4.31.11
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-26 14:33:43 -05:00
dependabot[bot]
f98a35bb05
Bump actions/cache from 5.0.1 to 5.0.2 ( #1941 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](9255dc7a25...8b402f58fb )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-version: 5.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-20 09:20:41 -05:00