Export library code in pkg/ (#1391)

* Export library code in `pkg/`

* new doc page
This commit is contained in:
John Kerl 2023-09-10 17:15:13 -04:00 committed by GitHub
parent 93b7c8eac0
commit 268a96d002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
358 changed files with 1076 additions and 693 deletions

View file

@ -30,25 +30,25 @@ install: build
# ----------------------------------------------------------------
# Unit tests (small number)
unit-test ut: build
go test github.com/johnkerl/miller/internal/pkg/...
go test github.com/johnkerl/miller/pkg/...
ut-lib:build
go test github.com/johnkerl/miller/internal/pkg/lib...
go test github.com/johnkerl/miller/pkg/lib...
ut-scan:build
go test github.com/johnkerl/miller/internal/pkg/scan/...
go test github.com/johnkerl/miller/pkg/scan/...
ut-mlv:build
go test github.com/johnkerl/miller/internal/pkg/mlrval/...
go test github.com/johnkerl/miller/pkg/mlrval/...
ut-bifs:build
go test github.com/johnkerl/miller/internal/pkg/bifs/...
go test github.com/johnkerl/miller/pkg/bifs/...
ut-input:build
go test github.com/johnkerl/miller/internal/pkg/input/...
go test github.com/johnkerl/miller/pkg/input/...
bench:build
go test -run=nonesuch -bench=. github.com/johnkerl/miller/internal/pkg/...
go test -run=nonesuch -bench=. github.com/johnkerl/miller/pkg/...
bench-mlv:build
go test -run=nonesuch -bench=. github.com/johnkerl/miller/internal/pkg/mlrval/...
go test -run=nonesuch -bench=. github.com/johnkerl/miller/pkg/mlrval/...
bench-input:build
go test -run=nonesuch -bench=. github.com/johnkerl/miller/internal/pkg/input/...
go test -run=nonesuch -bench=. github.com/johnkerl/miller/pkg/input/...
# ----------------------------------------------------------------
# Regression tests (large number)
@ -56,7 +56,7 @@ bench-input:build
# See ./regression_test.go for information on how to get more details
# for debugging. TL;DR is for CI jobs, we have 'go test -v'; for
# interactive use, instead of 'go test -v' simply use 'mlr regtest
# -vvv' or 'mlr regtest -s 20'. See also internal/pkg/terminals/regtest.
# -vvv' or 'mlr regtest -s 20'. See also pkg/terminals/regtest.
regression-test: build
go test -v regression_test.go
@ -65,7 +65,7 @@ regression-test: build
# go fmt ./... finds experimental C files which we want to ignore.
fmt format:
-go fmt ./cmd/...
-go fmt ./internal/pkg/...
-go fmt ./pkg/...
-go fmt ./regression_test.go
# ----------------------------------------------------------------