The package version must match the major tag version (#1654)

* Update package version

* Update makefile targets

* Update readme packages

* Remaining old packages via rg/sd
This commit is contained in:
Adam Lesperance 2024-09-20 11:10:11 -05:00 committed by GitHub
parent a91abf5d5c
commit 085e831668
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
221 changed files with 668 additions and 668 deletions

View file

@ -7,12 +7,12 @@ INSTALLDIR=$(PREFIX)/bin
# This must remain the first target in this file, which is what 'make' with no # This must remain the first target in this file, which is what 'make' with no
# arguments will run. # arguments will run.
build: build:
go build github.com/johnkerl/miller/cmd/mlr go build github.com/johnkerl/miller/v6/cmd/mlr
@echo "Build complete. The Miller executable is ./mlr (or .\mlr.exe on Windows)." @echo "Build complete. The Miller executable is ./mlr (or .\mlr.exe on Windows)."
@echo "You can use 'make check' to run tests". @echo "You can use 'make check' to run tests".
quiet: quiet:
@go build github.com/johnkerl/miller/cmd/mlr @go build github.com/johnkerl/miller/v6/cmd/mlr
# For interactive use, 'mlr regtest' offers more options and transparency. # For interactive use, 'mlr regtest' offers more options and transparency.
check: unit-test regression-test check: unit-test regression-test
@ -33,25 +33,25 @@ install: build
# ---------------------------------------------------------------- # ----------------------------------------------------------------
# Unit tests (small number) # Unit tests (small number)
unit-test ut: build unit-test ut: build
go test github.com/johnkerl/miller/pkg/... go test github.com/johnkerl/miller/v6/pkg/...
ut-lib:build ut-lib:build
go test github.com/johnkerl/miller/pkg/lib... go test github.com/johnkerl/miller/v6/pkg/lib...
ut-scan:build ut-scan:build
go test github.com/johnkerl/miller/pkg/scan/... go test github.com/johnkerl/miller/v6/pkg/scan/...
ut-mlv:build ut-mlv:build
go test github.com/johnkerl/miller/pkg/mlrval/... go test github.com/johnkerl/miller/v6/pkg/mlrval/...
ut-bifs:build ut-bifs:build
go test github.com/johnkerl/miller/pkg/bifs/... go test github.com/johnkerl/miller/v6/pkg/bifs/...
ut-input:build ut-input:build
go test github.com/johnkerl/miller/pkg/input/... go test github.com/johnkerl/miller/v6/pkg/input/...
bench:build bench:build
go test -run=nonesuch -bench=. github.com/johnkerl/miller/pkg/... go test -run=nonesuch -bench=. github.com/johnkerl/miller/v6/pkg/...
bench-mlv:build bench-mlv:build
go test -run=nonesuch -bench=. github.com/johnkerl/miller/pkg/mlrval/... go test -run=nonesuch -bench=. github.com/johnkerl/miller/v6/pkg/mlrval/...
bench-input:build bench-input:build
go test -run=nonesuch -bench=. github.com/johnkerl/miller/pkg/input/... go test -run=nonesuch -bench=. github.com/johnkerl/miller/v6/pkg/input/...
# ---------------------------------------------------------------- # ----------------------------------------------------------------
# Regression tests (large number) # Regression tests (large number)
@ -114,7 +114,7 @@ it: build check
so: install so: install
mlr: mlr:
go build github.com/johnkerl/miller/cmd/mlr go build github.com/johnkerl/miller/v6/cmd/mlr
# ---------------------------------------------------------------- # ----------------------------------------------------------------
# Please see comments in ./create-release-tarball as well as # Please see comments in ./create-release-tarball as well as

View file

@ -110,9 +110,9 @@ See also [building from source](https://miller.readthedocs.io/en/latest/build.ht
* To install: `make install`. This installs the executable `/usr/local/bin/mlr` and manual page `/usr/local/share/man/man1/mlr.1` (so you can do `man mlr`). * To install: `make install`. This installs the executable `/usr/local/bin/mlr` and manual page `/usr/local/share/man/man1/mlr.1` (so you can do `man mlr`).
* You can do `./configure --prefix=/some/install/path` before `make install` if you want to install somewhere other than `/usr/local`. * You can do `./configure --prefix=/some/install/path` before `make install` if you want to install somewhere other than `/usr/local`.
* Without `make`: * Without `make`:
* To build: `go build github.com/johnkerl/miller/cmd/mlr`. * To build: `go build github.com/johnkerl/miller/v6/cmd/mlr`.
* To run tests: `go test github.com/johnkerl/miller/pkg/...` and `mlr regtest`. * To run tests: `go test github.com/johnkerl/miller/v6/pkg/...` and `mlr regtest`.
* To install: `go install github.com/johnkerl/miller/cmd/mlr` will install to _GOPATH_`/bin/mlr`. * To install: `go install github.com/johnkerl/miller/v6/cmd/mlr` will install to _GOPATH_`/bin/mlr`.
* See also the doc page on [building from source](https://miller.readthedocs.io/en/latest/build). * See also the doc page on [building from source](https://miller.readthedocs.io/en/latest/build).
* For more developer information please see [README-dev.md](./README-dev.md). * For more developer information please see [README-dev.md](./README-dev.md).

View file

@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/colorizer" "github.com/johnkerl/miller/v6/pkg/colorizer"
) )
const boldString = "\u001b[1m" const boldString = "\u001b[1m"

View file

@ -11,7 +11,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/johnkerl/miller/pkg/entrypoint" "github.com/johnkerl/miller/v6/pkg/entrypoint"
"github.com/pkg/profile" // for trace.out "github.com/pkg/profile" // for trace.out
) )

View file

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/scan" "github.com/johnkerl/miller/v6/pkg/scan"
) )
func main() { func main() {

View file

@ -3,7 +3,7 @@
// ================================================================ // ================================================================
/* /*
go build github.com/johnkerl/miller/cmd/sizes go build github.com/johnkerl/miller/v6/cmd/sizes
*/ */
package main package main
@ -11,7 +11,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func main() { func main() {

View file

@ -31,16 +31,16 @@ Two-clause BSD license [https://github.com/johnkerl/miller/blob/master/LICENSE.t
* `cd mlr-i.j.k` * `cd mlr-i.j.k`
* `cd go` * `cd go`
* `make` creates the `./mlr` (or `.\mlr.exe` on Windows) executable * `make` creates the `./mlr` (or `.\mlr.exe` on Windows) executable
* Without `make`: `go build github.com/johnkerl/miller/cmd/mlr` * Without `make`: `go build github.com/johnkerl/miller/v6/cmd/mlr`
* `make check` runs tests * `make check` runs tests
* Without `make`: `go test github.com/johnkerl/miller/pkg/...` and `mlr regtest` * Without `make`: `go test github.com/johnkerl/miller/v6/pkg/...` and `mlr regtest`
* `make install` installs the `mlr` executable and the `mlr` manpage * `make install` installs the `mlr` executable and the `mlr` manpage
* Without make: `go install github.com/johnkerl/miller/cmd/mlr` will install to _GOPATH_`/bin/mlr` * Without make: `go install github.com/johnkerl/miller/v6/cmd/mlr` will install to _GOPATH_`/bin/mlr`
## From git clone ## From git clone
* `git clone https://github.com/johnkerl/miller` * `git clone https://github.com/johnkerl/miller`
* `make`/`go build github.com/johnkerl/miller/cmd/mlr` as above * `make`/`go build github.com/johnkerl/miller/v6/cmd/mlr` as above
## In case of problems ## In case of problems

View file

@ -15,16 +15,16 @@ Two-clause BSD license [https://github.com/johnkerl/miller/blob/master/LICENSE.t
* `cd mlr-i.j.k` * `cd mlr-i.j.k`
* `cd go` * `cd go`
* `make` creates the `./mlr` (or `.\mlr.exe` on Windows) executable * `make` creates the `./mlr` (or `.\mlr.exe` on Windows) executable
* Without `make`: `go build github.com/johnkerl/miller/cmd/mlr` * Without `make`: `go build github.com/johnkerl/miller/v6/cmd/mlr`
* `make check` runs tests * `make check` runs tests
* Without `make`: `go test github.com/johnkerl/miller/pkg/...` and `mlr regtest` * Without `make`: `go test github.com/johnkerl/miller/v6/pkg/...` and `mlr regtest`
* `make install` installs the `mlr` executable and the `mlr` manpage * `make install` installs the `mlr` executable and the `mlr` manpage
* Without make: `go install github.com/johnkerl/miller/cmd/mlr` will install to _GOPATH_`/bin/mlr` * Without make: `go install github.com/johnkerl/miller/v6/cmd/mlr` will install to _GOPATH_`/bin/mlr`
## From git clone ## From git clone
* `git clone https://github.com/johnkerl/miller` * `git clone https://github.com/johnkerl/miller`
* `make`/`go build github.com/johnkerl/miller/cmd/mlr` as above * `make`/`go build github.com/johnkerl/miller/v6/cmd/mlr` as above
## In case of problems ## In case of problems

View file

@ -50,8 +50,8 @@ package main
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/bifs" "github.com/johnkerl/miller/v6/pkg/bifs"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func main() { func main() {
@ -86,11 +86,11 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/bifs" "github.com/johnkerl/miller/v6/pkg/bifs"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/input" "github.com/johnkerl/miller/v6/pkg/input"
"github.com/johnkerl/miller/pkg/output" "github.com/johnkerl/miller/v6/pkg/output"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// Put your record-processing logic here. // Put your record-processing logic here.

View file

@ -3,8 +3,8 @@ package main
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/bifs" "github.com/johnkerl/miller/v6/pkg/bifs"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func main() { func main() {

View file

@ -7,11 +7,11 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/bifs" "github.com/johnkerl/miller/v6/pkg/bifs"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/input" "github.com/johnkerl/miller/v6/pkg/input"
"github.com/johnkerl/miller/pkg/output" "github.com/johnkerl/miller/v6/pkg/output"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// Put your record-processing logic here. // Put your record-processing logic here.
@ -49,7 +49,7 @@ func custom_options() *cli.TOptions {
func run_custom_processor( func run_custom_processor(
fileNames []string, fileNames []string,
options *cli.TOptions, options *cli.TOptions,
record_processor func (irac *types.RecordAndContext) (*types.RecordAndContext, error), record_processor func(irac *types.RecordAndContext) (*types.RecordAndContext, error),
) error { ) error {
outputStream := os.Stdout outputStream := os.Stdout
outputIsStdout := true outputIsStdout := true

View file

@ -7,11 +7,11 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/input" "github.com/johnkerl/miller/v6/pkg/input"
"github.com/johnkerl/miller/pkg/output" "github.com/johnkerl/miller/v6/pkg/output"
"github.com/johnkerl/miller/pkg/transformers" "github.com/johnkerl/miller/v6/pkg/transformers"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
func convert_csv_to_json(fileNames []string) error { func convert_csv_to_json(fileNames []string) error {

6
go.mod
View file

@ -1,4 +1,4 @@
module github.com/johnkerl/miller module github.com/johnkerl/miller/v6
// The repo is 'miller' and the executable is 'mlr', going back many years and // The repo is 'miller' and the executable is 'mlr', going back many years and
// predating the Go port. // predating the Go port.
@ -7,8 +7,8 @@ module github.com/johnkerl/miller
// executable would be 'miller' not 'mlr'. // executable would be 'miller' not 'mlr'.
// //
// So we have cmd/mlr/main.go: // So we have cmd/mlr/main.go:
// * go build github.com/johnkerl/miller/cmd/mlr // * go build github.com/johnkerl/miller/v6/cmd/mlr
// * go install github.com/johnkerl/miller/cmd/mlr // * go install github.com/johnkerl/miller/v6/cmd/mlr
// go get github.com/johnkerl/lumin@v1.0.0 // go get github.com/johnkerl/lumin@v1.0.0
// Local development: // Local development:

View file

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"math" "math"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
// ================================================================ // ================================================================

View file

@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func TestBIF_plus_unary(t *testing.T) { func TestBIF_plus_unary(t *testing.T) {

View file

@ -50,9 +50,9 @@ package bifs
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// Function-pointer type for zary functions. // Function-pointer type for zary functions.

View file

@ -1,7 +1,7 @@
package bifs package bifs
import ( import (
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
// ================================================================ // ================================================================

View file

@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func TestBIF_bitcount(t *testing.T) { func TestBIF_bitcount(t *testing.T) {

View file

@ -5,7 +5,7 @@
package bifs package bifs
import ( import (
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func BIF_logical_NOT(input1 *mlrval.Mlrval) *mlrval.Mlrval { func BIF_logical_NOT(input1 *mlrval.Mlrval) *mlrval.Mlrval {

View file

@ -5,8 +5,8 @@
package bifs package bifs
import ( import (
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View file

@ -5,8 +5,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
// ================================================================ // ================================================================

View file

@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func TestBIF_length(t *testing.T) { func TestBIF_length(t *testing.T) {

View file

@ -5,11 +5,11 @@ import (
"regexp" "regexp"
"time" "time"
strptime "github.com/johnkerl/miller/pkg/pbnjay-strptime" strptime "github.com/johnkerl/miller/v6/pkg/pbnjay-strptime"
"github.com/lestrrat-go/strftime" "github.com/lestrrat-go/strftime"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
const ISO8601_TIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ" const ISO8601_TIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"

View file

@ -7,7 +7,7 @@ import (
"crypto/sha512" "crypto/sha512"
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func BIF_md5(input1 *mlrval.Mlrval) *mlrval.Mlrval { func BIF_md5(input1 *mlrval.Mlrval) *mlrval.Mlrval {

View file

@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func TestBIF_md5(t *testing.T) { func TestBIF_md5(t *testing.T) {

View file

@ -7,8 +7,8 @@ package bifs
import ( import (
"math" "math"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -3,7 +3,7 @@ package bifs
import ( import (
"math" "math"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func GetPercentileLinearlyInterpolated( func GetPercentileLinearlyInterpolated(

View file

@ -3,8 +3,8 @@ package bifs
import ( import (
"math" "math"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func BIF_urand() *mlrval.Mlrval { func BIF_urand() *mlrval.Mlrval {

View file

@ -3,8 +3,8 @@ package bifs
import ( import (
"strings" "strings"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
// BIF_ssub implements the ssub function -- no-frills string-replace, no // BIF_ssub implements the ssub function -- no-frills string-replace, no

View file

@ -5,7 +5,7 @@ import (
"math" "math"
"strings" "strings"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func BIF_dhms2sec(input1 *mlrval.Mlrval) *mlrval.Mlrval { func BIF_dhms2sec(input1 *mlrval.Mlrval) *mlrval.Mlrval {

View file

@ -4,8 +4,8 @@ import (
"math" "math"
"sort" "sort"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
func stats_test_array(n int) *mlrval.Mlrval { func stats_test_array(n int) *mlrval.Mlrval {

View file

@ -7,8 +7,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
// ================================================================ // ================================================================

View file

@ -6,9 +6,9 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/platform" "github.com/johnkerl/miller/v6/pkg/platform"
"github.com/johnkerl/miller/pkg/version" "github.com/johnkerl/miller/v6/pkg/version"
) )
func BIF_version() *mlrval.Mlrval { func BIF_version() *mlrval.Mlrval {

View file

@ -5,9 +5,9 @@ import (
"math" "math"
"os" "os"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ================================================================ // ================================================================

View file

@ -42,8 +42,8 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/johnkerl/miller/pkg/colorizer" "github.com/johnkerl/miller/v6/pkg/colorizer"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -16,9 +16,9 @@ import (
"github.com/mattn/go-isatty" "github.com/mattn/go-isatty"
"github.com/johnkerl/miller/pkg/colorizer" "github.com/johnkerl/miller/v6/pkg/colorizer"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
) )
// FinalizeReaderOptions does a few things. // FinalizeReaderOptions does a few things.

View file

@ -9,7 +9,7 @@ package cli
import ( import (
"regexp" "regexp"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
type TCommentHandling int type TCommentHandling int

View file

@ -9,7 +9,7 @@ import (
"os" "os"
"strconv" "strconv"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// For flags with values, e.g. ["-n" "10"], while we're looking at the "-n" this let us see if the "10" slot exists. // For flags with values, e.g. ["-n" "10"], while we're looking at the "-n" this let us see if the "10" slot exists.

View file

@ -8,7 +8,7 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
) )
// loadMlrrcOrDie rule: If $MLRRC is set, use it and only it. Otherwise try // loadMlrrcOrDie rule: If $MLRRC is set, use it and only it. Otherwise try

View file

@ -74,13 +74,13 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/terminals" "github.com/johnkerl/miller/v6/pkg/terminals"
"github.com/johnkerl/miller/pkg/terminals/help" "github.com/johnkerl/miller/v6/pkg/terminals/help"
"github.com/johnkerl/miller/pkg/transformers" "github.com/johnkerl/miller/v6/pkg/transformers"
"github.com/johnkerl/miller/pkg/version" "github.com/johnkerl/miller/v6/pkg/version"
) )
// ParseCommandLine is the entrypoint for handling the Miller command line: // ParseCommandLine is the entrypoint for handling the Miller command line:

View file

@ -6,7 +6,7 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
shellquote "github.com/kballard/go-shellquote" shellquote "github.com/kballard/go-shellquote"
) )

View file

@ -8,8 +8,8 @@ package dsl
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/parsing/token" "github.com/johnkerl/miller/v6/pkg/parsing/token"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -5,7 +5,7 @@
package dsl package dsl
import ( import (
"github.com/johnkerl/miller/pkg/parsing/token" "github.com/johnkerl/miller/v6/pkg/parsing/token"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -5,9 +5,9 @@
package cst package cst
import ( import (
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ================================================================ // ================================================================

View file

@ -8,9 +8,9 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -6,9 +6,9 @@
package cst package cst
import ( import (
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -19,9 +19,9 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/johnkerl/miller/pkg/bifs" "github.com/johnkerl/miller/v6/pkg/bifs"
"github.com/johnkerl/miller/pkg/colorizer" "github.com/johnkerl/miller/v6/pkg/colorizer"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
type TFunctionClass string type TFunctionClass string

View file

@ -7,11 +7,11 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/bifs" "github.com/johnkerl/miller/v6/pkg/bifs"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -8,11 +8,11 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/bifs" "github.com/johnkerl/miller/v6/pkg/bifs"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -8,11 +8,11 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/parsing/token" "github.com/johnkerl/miller/v6/pkg/parsing/token"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
type CondBlockNode struct { type CondBlockNode struct {

View file

@ -21,11 +21,11 @@ import (
"os" "os"
"strings" "strings"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/output" "github.com/johnkerl/miller/v6/pkg/output"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ================================================================ // ================================================================

View file

@ -22,10 +22,10 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
type Emit1StatementNode struct { type Emit1StatementNode struct {

View file

@ -41,13 +41,13 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/output" "github.com/johnkerl/miller/v6/pkg/output"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ================================================================ // ================================================================

View file

@ -8,12 +8,12 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/output" "github.com/johnkerl/miller/v6/pkg/output"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ================================================================ // ================================================================

View file

@ -10,10 +10,10 @@ package cst
import ( import (
"os" "os"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
type EnvironmentVariableNode struct { type EnvironmentVariableNode struct {

View file

@ -10,10 +10,10 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -19,9 +19,9 @@
package cst package cst
import ( import (
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -7,11 +7,11 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/parsing/token" "github.com/johnkerl/miller/v6/pkg/parsing/token"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -9,8 +9,8 @@
package cst package cst
import ( import (
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -14,12 +14,12 @@ import (
"github.com/facette/natsort" "github.com/facette/natsort"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// Most function types are in the github.com/johnkerl/miller/pkg/types package. These types, though, // Most function types are in the github.com/johnkerl/miller/v6/pkg/types package. These types, though,
// include functions which need to access CST state in order to call back to // include functions which need to access CST state in order to call back to
// user-defined functions. To avoid a package-cycle dependency, they are // user-defined functions. To avoid a package-cycle dependency, they are
// defined here. // defined here.

View file

@ -7,11 +7,11 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/parsing/token" "github.com/johnkerl/miller/v6/pkg/parsing/token"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/johnkerl/miller/pkg/colorizer" "github.com/johnkerl/miller/v6/pkg/colorizer"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -8,10 +8,10 @@ import (
"fmt" "fmt"
"math" "math"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -9,10 +9,10 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -9,11 +9,11 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/output" "github.com/johnkerl/miller/v6/pkg/output"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -11,13 +11,13 @@ import (
"os" "os"
"strings" "strings"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/output" "github.com/johnkerl/miller/v6/pkg/output"
"github.com/johnkerl/miller/pkg/parsing/lexer" "github.com/johnkerl/miller/v6/pkg/parsing/lexer"
"github.com/johnkerl/miller/pkg/parsing/parser" "github.com/johnkerl/miller/v6/pkg/parsing/parser"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// NewEmptyRoot sets up an empty CST, before ingesting any DSL strings. For // NewEmptyRoot sets up an empty CST, before ingesting any DSL strings. For

View file

@ -6,7 +6,7 @@
package cst package cst
import ( import (
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -8,7 +8,7 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -9,8 +9,8 @@
package cst package cst
import ( import (
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -7,12 +7,12 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/output" "github.com/johnkerl/miller/v6/pkg/output"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -7,10 +7,10 @@ package cst
import ( import (
"container/list" "container/list"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -8,11 +8,11 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -7,11 +7,11 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -9,8 +9,8 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -11,8 +11,8 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -7,10 +7,10 @@ package cst
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/dsl" "github.com/johnkerl/miller/v6/pkg/dsl"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/parsing/token" "github.com/johnkerl/miller/v6/pkg/parsing/token"
"github.com/johnkerl/miller/pkg/runtime" "github.com/johnkerl/miller/v6/pkg/runtime"
) )
// ================================================================ // ================================================================

View file

@ -3,7 +3,7 @@ package dsl
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/parsing/token" "github.com/johnkerl/miller/v6/pkg/parsing/token"
) )
// TokenToLocationInfo is used to track runtime errors back to source-code locations in DSL // TokenToLocationInfo is used to track runtime errors back to source-code locations in DSL

View file

@ -10,13 +10,13 @@ import (
"os" "os"
"path" "path"
"github.com/johnkerl/miller/pkg/auxents" "github.com/johnkerl/miller/v6/pkg/auxents"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/climain" "github.com/johnkerl/miller/v6/pkg/climain"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/platform" "github.com/johnkerl/miller/v6/pkg/platform"
"github.com/johnkerl/miller/pkg/stream" "github.com/johnkerl/miller/v6/pkg/stream"
"github.com/johnkerl/miller/pkg/transformers" "github.com/johnkerl/miller/v6/pkg/transformers"
) )
type MainReturn struct { type MainReturn struct {

View file

@ -9,7 +9,7 @@ import (
"io" "io"
"strings" "strings"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
type ILineReader interface { type ILineReader interface {

View file

@ -4,10 +4,10 @@ import (
"container/list" "container/list"
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/bifs" "github.com/johnkerl/miller/v6/pkg/bifs"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
type PseudoReaderGen struct { type PseudoReaderGen struct {

View file

@ -6,7 +6,7 @@ package input
import ( import (
"container/list" "container/list"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// Since Go is concurrent, the context struct (AWK-like variables such as // Since Go is concurrent, the context struct (AWK-like variables such as

View file

@ -5,10 +5,10 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
) )
// go test -run=nonesuch -bench=. github.com/johnkerl/miller/pkg/input/... // go test -run=nonesuch -bench=. github.com/johnkerl/miller/v6/pkg/input/...
func BenchmarkDKVPParse(b *testing.B) { func BenchmarkDKVPParse(b *testing.B) {
readerOptions := &cli.TReaderOptions{ readerOptions := &cli.TReaderOptions{

View file

@ -8,12 +8,12 @@ import (
"strconv" "strconv"
"strings" "strings"
csv "github.com/johnkerl/miller/pkg/go-csv" csv "github.com/johnkerl/miller/v6/pkg/go-csv"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -25,10 +25,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// recordBatchGetterCSV points to either an explicit-CSV-header or // recordBatchGetterCSV points to either an explicit-CSV-header or

View file

@ -8,10 +8,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// splitter_DKVP_NIDX is a function type for the one bit of code differing // splitter_DKVP_NIDX is a function type for the one bit of code differing

View file

@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
) )
func TestRecordFromDKVPLine(t *testing.T) { func TestRecordFromDKVPLine(t *testing.T) {

View file

@ -3,7 +3,7 @@ package input
import ( import (
"fmt" "fmt"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
) )
func Create(readerOptions *cli.TReaderOptions, recordsPerBatch int64) (IRecordReader, error) { func Create(readerOptions *cli.TReaderOptions, recordsPerBatch int64) (IRecordReader, error) {

View file

@ -8,10 +8,10 @@ import (
"encoding/json" "encoding/json"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
type RecordReaderJSON struct { type RecordReaderJSON struct {

View file

@ -3,7 +3,7 @@ package input
import ( import (
"regexp" "regexp"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
) )
func NewRecordReaderMarkdown( func NewRecordReaderMarkdown(

View file

@ -8,10 +8,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
func NewRecordReaderPPRINT( func NewRecordReaderPPRINT(

View file

@ -7,10 +7,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
// recordBatchGetterTSV points to either an explicit-TSV-header or // recordBatchGetterTSV points to either an explicit-TSV-header or

View file

@ -8,10 +8,10 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
"github.com/johnkerl/miller/pkg/mlrval" "github.com/johnkerl/miller/v6/pkg/mlrval"
"github.com/johnkerl/miller/pkg/types" "github.com/johnkerl/miller/v6/pkg/types"
) )
type iXTABPairSplitter interface { type iXTABPairSplitter interface {

View file

@ -7,8 +7,8 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/johnkerl/miller/pkg/cli" "github.com/johnkerl/miller/v6/pkg/cli"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// IPairSplitter splits a string into left and right, e.g. for IPS. // IPairSplitter splits a string into left and right, e.g. for IPS.

View file

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/johnkerl/miller/pkg/platform" "github.com/johnkerl/miller/v6/pkg/platform"
) )
// OpenOutboundHalfPipe returns a handle to a process. Writing to that handle // OpenOutboundHalfPipe returns a handle to a process. Writing to that handle

View file

@ -9,7 +9,7 @@ import (
"os" "os"
"strings" "strings"
csv "github.com/johnkerl/miller/pkg/go-csv" csv "github.com/johnkerl/miller/v6/pkg/go-csv"
) )
// LoadStringsFromFileOrDir calls LoadStringFromFile if path exists and is a // LoadStringsFromFileOrDir calls LoadStringFromFile if path exists and is a

View file

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// IsEmpty determines if a map is empty. // IsEmpty determines if a map is empty.

View file

@ -25,7 +25,7 @@ package mlrval
import ( import (
"strings" "strings"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -7,8 +7,8 @@ package mlrval
import ( import (
"bytes" "bytes"
"github.com/johnkerl/miller/pkg/colorizer" "github.com/johnkerl/miller/v6/pkg/colorizer"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View file

@ -3,7 +3,7 @@ package mlrval
import ( import (
"strconv" "strconv"
"github.com/johnkerl/miller/pkg/lib" "github.com/johnkerl/miller/v6/pkg/lib"
) )
func (mv *Mlrval) GetArrayLength() (int, bool) { func (mv *Mlrval) GetArrayLength() (int, bool) {

Some files were not shown because too many files have changed in this diff Show more