Commit graph

8236 commits

Author SHA1 Message Date
John Kerl
d9298fd26b mlr split 2022-01-26 23:11:24 -05:00
John Kerl
dad6456022
Clarify source for printf-style formatting (#895) 2022-01-24 22:52:38 -05:00
John Kerl
3b4963ea3c Merge branch 'main' of github.com:johnkerl/miller 2022-01-24 16:33:34 -05:00
John Kerl
62a50fb9a5 Fix slwin-7-2 -> slwin_7_2 doc info 2022-01-24 16:33:05 -05:00
John Kerl
be92d85907 Fix slwin-7-2 -> slwin_7_2 doc info 2022-01-24 16:31:35 -05:00
John Kerl
d08dcebae4 todo 2022-01-24 07:53:47 -05:00
John Kerl
dedc7ff06f replace - with _ in *.go filenames 2022-01-23 23:22:55 -05:00
John Kerl
b4c50470a2 typofix 2022-01-23 23:18:23 -05:00
John Kerl
cba47ce6ad Merge branch 'sliding-window-averages' 2022-01-23 23:13:42 -05:00
John Kerl
9dd6d9b730 Merge branch 'main' of https://github.com/johnkerl/miller 2022-01-23 23:13:35 -05:00
John Kerl
77811a4788
Sliding window averages (#894)
* todo

* Neaten existing DSL sketch

* rebase on #893, and sketch

* code-complete

* build artifacts for previous commit

* replace - with _ in shift and slwin
2022-01-23 23:03:46 -05:00
John Kerl
5c31e36066 replace - with _ in shift and slwin 2022-01-23 22:48:26 -05:00
John Kerl
9fb4e58f9f build artifacts for previous commit 2022-01-23 11:00:21 -05:00
John Kerl
e908f89603 code-complete 2022-01-23 11:00:09 -05:00
John Kerl
2248f11675 rebase on #893, and sketch 2022-01-23 01:23:17 -05:00
John Kerl
0b74c4feef Neaten existing DSL sketch 2022-01-23 00:55:43 -05:00
John Kerl
9d72b0bded todo 2022-01-23 00:55:43 -05:00
John Kerl
cff2a898c4 Merge branch 'shift-lag-shift-lead' 2022-01-23 00:55:27 -05:00
John Kerl
2aacd87601 Merge branch 'main' of https://github.com/johnkerl/miller 2022-01-23 00:55:15 -05:00
John Kerl
a2a9118ad8
Implement shift-lead option for mlr step (#893)
* iterating

* stepper-input refactor in prep for sliding-window PR

* window-keeper util class

* integrate window-keeper into step-transformer
2022-01-23 00:54:39 -05:00
John Kerl
57a967200a integrate window-keeper into step-transformer 2022-01-23 00:50:00 -05:00
John Kerl
cd8b714dc8 window-keeper util class 2022-01-21 22:53:52 -05:00
John Kerl
9a43a1dcd5 stepper-input refactor in prep for sliding-window PR 2022-01-21 22:53:52 -05:00
John Kerl
929b23802b iterating 2022-01-21 22:53:52 -05:00
John Kerl
bd0715c6b2 Merge branch 'main' of https://github.com/johnkerl/miller 2022-01-21 22:53:37 -05:00
John Kerl
35bc852cd7 doc-neaten 2022-01-21 09:57:07 -05:00
John Kerl
bc1fa78567 Merge branch 'fix-891' 2022-01-20 13:35:13 -05:00
John Kerl
b6bad96caf
Fix #891 (#892)
* Fix #891

* update tests; artifacts for previous commit
2022-01-20 13:34:58 -05:00
John Kerl
40931ca80f update tests; artifacts for previous commit 2022-01-20 12:42:36 -05:00
John Kerl
7c9b36caf3 Fix #891 2022-01-20 12:38:34 -05:00
John Kerl
50883cd2ce Merge branch 'main' of https://github.com/johnkerl/miller 2022-01-20 09:26:32 -05:00
Jauder Ho
033067e49b
Update .goreleaser.yml (#866)
* Update .goreleaser.yml

Reorg and changes.

- Move release section to the top
- Switch to using dashes instead of underscores for naming and filenames
- Set gomod proxy to true for reproducible builds
- Add archives section to use zip for Windows builds, name Mac builds as macos instead of darwin and also have a top level directory for tar.gz
- Add the ability to build .deb and .rpm as part of the release process

* Update .goreleaser.yml

Disable gomod for goreleaser for now.
2022-01-18 21:57:23 -05:00
Jauder Ho
3b4171e242
Update release.yml (#867)
* Update release.yml

This properly caches the build so that rebuilds run much faster.

Also update to Go 1.17.6

* Update release.yml

Fix formatting
2022-01-18 21:56:53 -05:00
John Kerl
3a8cce56e1 Merge branch 'more-of-884' 2022-01-18 21:53:53 -05:00
John Kerl
f8fbfeeb0b
More of 884 (#887)
* More of #884

* More of #884
2022-01-18 21:53:40 -05:00
John Kerl
88f1e0e29a More of #884 2022-01-18 21:48:17 -05:00
John Kerl
38498eb048 More of #884 2022-01-18 20:58:05 -05:00
Stephen Kitt
521215992d
Specify constant types except with iota (#884)
Constant types need to be repeated, unless iota is used or the
constants are declared in the same expression
(const A, B, C Type = 1, 2, 3). See
https://go.dev/ref/spec#Constant_declarations for details.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-18 20:51:53 -05:00
Stephen Kitt
bc8ad1b579
Clean up file output handler error handling (#886)
The "= nil" assignment isn't necessary. Merge the error handling, and
drop the empty "if outputHandler != nil" branch.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-18 20:49:58 -05:00
Stephen Kitt
9c5e3ee190
Use raw strings to avoid escapes (#885)
Especially for regexes, raw strings improve readability since they
aren't escaped.

While we're at it, use MustCompile instead of handling the error and
exiting.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-18 20:49:00 -05:00
John Kerl
04f4f07ccd Merge branch 'is-null' 2022-01-18 08:25:28 -05:00
John Kerl
4fb0b716ba
Make is_null/is_not_null DSL functions include new JSON-null type (#883)
* Make is_null/is_not_null DSL functions include new JSON-null type

* regression-test files
2022-01-18 08:25:03 -05:00
John Kerl
1da5bdcfa3 regression-test files 2022-01-18 07:37:46 -05:00
John Kerl
21e7ee999e Make is_null/is_not_null DSL functions include new JSON-null type 2022-01-18 07:37:13 -05:00
John Kerl
eb7e29d207 neaten 2022-01-17 22:57:19 -05:00
Stephen Kitt
af7bacf00e
Avoid assuming ./mlr is the mlr to test (#876)
In test cases, support a ${MLR} placeholder for the mlr binary under
test, instead of assuming it's ./mlr (or its equivalent on platforms
not using forward slashes).

This ensures that wrapped mlr invocations all use the same binary,
either the default or the binary specified by the user, avoiding
surprises when ./mlr doesn't exist or is a different version.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-17 17:01:40 -05:00
Stephen Kitt
7ad53b0ce1
Append slices directly instead of looping (#879)
Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-17 16:58:46 -05:00
Stephen Kitt
d3ba32ad85
Fix mlrmap.Equals FieldCount comparison (#878)
This should compare mlrmap to other, not mlrmap to itself.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-17 16:58:24 -05:00
Stephen Kitt
c57a635474
Ensure regression-test has a binary to test (#877)
"make regression-test" assumes that ./mlr is the binary to test. To
ensure that ./mlr is available, make "build" a pre-requisite of
"regression-test"; otherwise "make regression-test" will test whatever
version of mlr is on the PATH if ./mlr doesn't exist.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-17 16:57:45 -05:00
John Kerl
9d4ee1a1d6 Merge branch 'array-pointer-mlrval' 2022-01-17 15:14:16 -05:00