Skip to content

Releases: zoido/yag-config

v1.0.0

10 Dec 16:45
722118e
Compare
Choose a tag to compare

1.0.0 (2023-12-10)

⚠ BREAKING CHANGES

  • Remove support for parsing args introduced in v0.5.0-alpha1 (#44)

Features

  • Expose leftover args so that they can processed further if needed. (a2ec721)

Bug Fixes

  • ⬆️ bump github.com/stretchr/testify from 1.6.1 to 1.8.4 (#59) (3b4fa69)

v0.5.0-alpha1

22 Dec 09:38
da77564
Compare
Choose a tag to compare
v0.5.0-alpha1 Pre-release
Pre-release

Changelog

  • Initial version with support for command line arguments parsing
    Example:
     var arg int64
     var stringArgs []string
     
     y := yag.New()
     y.Args().Int64(&arg)
     y.Args().Strings(&stringArgs)
     
     fmt.Print(y.Usage())
     
     // Output:
     //  [int64] [string, ...]
     

Full Changelog: v0.4.0...v0.5.0-alpha1

v0.4.0

21 Dec 08:11
e5f169a
Compare
Choose a tag to compare

Changelog

  • Adds alias for ErrHelp error. (#22)
  • Fix some detected typos and formating. (#30)
  • Update to go 1.17 (#32)
  • Minor cleanups (#34)
  • Drop use of test suites (#31)
  • Update the workflow and tooling
  • Setup GoReleaser

Release 0.3.0

30 Aug 21:29
dae4c8b
Compare
Choose a tag to compare
  • internal cleanup
  • flag.Value implementations extracted to the dedicated package

Release 0.2.0

30 Aug 07:01
44aa19d
Compare
Choose a tag to compare
  • ability to disable flag or ENV source for the variables (yag.NoEnv() and yag.NoFlag() options)
  • Parser.Usage() now just returns a formatted string. (no need to pass the destination os.File)
  • improved usage string to reflect yag.NoEnv() and yag.NoFlag() options

Release v0.1.0 (1st tagged version)

25 Aug 20:10
6d43be5
Compare
Choose a tag to compare
  • basic types
  • any flag.Value
  • yag.Required
  • environment variable prefix
  • custom environment variable