Releases: memclutter/confparse
Releases · memclutter/confparse
Release list
v0.0.4 — MIT relicense, docs refresh, green CI
Maintenance release: MIT relicense, refreshed docs, and a green CI again. No
changes to the public API or behaviour — Parse, the struct tags, and the
supported types are unchanged.
Added
CONTRIBUTING.mdcovering setup, the test/lint workflow, code style, how to add
a supported type, and the commit/PR/release process.- A
CHANGELOG.md(Keep a Changelog format), with history reconstructed back to
v0.0.1.
Fixed
- CI is green again. The workflow tested Go 1.14–1.17, which have no
darwin/arm64
builds and failed to install on the now-Apple-SiliconmacOS-latestrunners,
cancelling the whole matrix. It now tests the module floor (1.18) plus the two
latest Go releases, setsfail-fast: false, and upgrades to
actions/checkout@v4,actions/setup-go@v5, andcodecov/codecov-action@v5.
Changed
- Relicensed from the Apache License 2.0 to the MIT License.
- Reworked
README.md: status badges, a tag reference table, the full supported-type
list, an explicit default-precedence rule (CLI flag >envVar>value> zero
value), and a runnable example.
Full changelog: v0.0.3...v0.0.4
v0.0.3
Added
uintanduint64field types.
Changed
- Converted the project to a Go module (
module github.com/memclutter/confparse,go 1.18). - Replaced Travis CI with a GitHub Actions workflow running
go test ./... -raceacross a Go version matrix (1.14–1.17) on Linux, macOS, and Windows, and uploading coverage to Codecov. - Reworked the test suite into table-driven cases at 100% coverage, including the default-value error paths for every supported type.
Full changelog: v0.0.2...v0.0.3
v0.0.2
v0.0.1
First release of confparse — a declarative command-line argument parser for Go.
Added
Parse(container interface{}) error, which reflects over a pointer-to-struct and registers each field as a standard-libraryflag.- Struct tags
name(flag name),value(string default),usage(help text), andenvVar(environment-variable fallback for the default). - Supported field types:
string,int,bool, andtime.Duration. - Environment extension: when a field's
envVarvariable is set and non-empty, its value becomes the field's default.
Install: go get github.com/memclutter/confparse@v0.0.1