Command-line tools that National Single Window deployments and their CI run. They are built on the libraries in OpenNSW/core.
| Tool | Command | What it does |
|---|---|---|
migrator |
migrate |
Applies versioned SQL migrations to PostgreSQL or SQLite, and records each applied version in a __migrations table |
- Standalone commands that any OpenNSW deployment can use.
- No code that is specific to one deployment: a tool takes everything about a deployment from its configuration.
- Libraries belong in OpenNSW/core, and application code stays in the application.
Each tool is its own Go module, github.com/OpenNSW/tools/<tool>, released with its own tags, <tool>/vX.Y.Z. Install a command with go install, giving the version without the tool prefix:
go install github.com/OpenNSW/tools/<tool>/cmd/<command>@vX.Y.ZPin a version in builds and container images, so every environment runs the same tool. Each tool's README describes its commands and configuration.
See CONTRIBUTING.md. Report security problems privately, as SECURITY.md describes, not in public issues.
Apache License 2.0. See LICENSE.