Skip to content

Releases: memclutter/confparse

v0.0.4 — MIT relicense, docs refresh, green CI

Choose a tag to compare

@memclutter memclutter released this 28 Jun 09:19
v0.0.4
6bb1a14

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.md covering 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-Silicon macOS-latest runners,
    cancelling the whole matrix. It now tests the module floor (1.18) plus the two
    latest Go releases, sets fail-fast: false, and upgrades to
    actions/checkout@v4, actions/setup-go@v5, and codecov/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

Choose a tag to compare

@memclutter memclutter released this 07 Nov 22:27

Added

  • uint and uint64 field 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 ./... -race across 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

Choose a tag to compare

@memclutter memclutter released this 07 Nov 19:55

Added

  • int64 field type.

Full changelog: v0.0.1...v0.0.2

v0.0.1

Choose a tag to compare

@memclutter memclutter released this 25 Sep 17:23
a7b3da8

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-library flag.
  • Struct tags name (flag name), value (string default), usage (help text), and envVar (environment-variable fallback for the default).
  • Supported field types: string, int, bool, and time.Duration.
  • Environment extension: when a field's envVar variable is set and non-empty, its value becomes the field's default.

Install: go get github.com/memclutter/confparse@v0.0.1