This CLI is used to record and query software delivery events to Kosli.
See the docs
make lint
make build
Then to run Kosli commands:
./kosli [COMMAND]
Windows will not allow building using the makefile, so we need to run the commands directly in the terminal.
set GOFLAGS=""
go mod download
go mod tidy
go vet ./...
go build -o kosli.exe -ldflags '-extldflags "-static"' ./cmd/kosli/
Then to run Kosli commands:
./kosli.exe [COMMAND] or .\kosli.exe [COMMAND]
make hugo-local
To run the tests you need to set the env-var KOSLI_API_TOKEN_PROD
to an api-token (with reader rights), for the kosli Org on https://app.kosli.com
To run all tests except the too slow ones:
make test_integration
To run all the tests"
make test_integration_full
To run only the tests in a single test suite, eg TestAttestJunitCommandTestSuite
make test_integration_single TARGET=TestAttestJunitCommandTestSuite
See the release guide for details on CI/CD pipelines and the release process.