Skip to content

Releases

v0.3.1

Choose a tag to compare

@blaubaer blaubaer released this 17 Nov 13:48
f5e512b

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@blaubaer blaubaer released this 21 Oct 13:44
3b5a8d3

What's Changed

  • Add context-aware shell completion by @blaubaer in #26
  • Bump jdx/mise-action from 5.0.1 to 5.2.0 by @dependabot[bot] in #21
  • Bump github.com/spf13/pflag in /_benchmarks by @dependabot[bot] in #22
  • Bump github/codeql-action/init from 4.38.2 to 4.39.0 by @dependabot[bot] in #23
  • Bump golang.org/x/tools in /_benchmarks by @dependabot[bot] in #24

Full Changelog: v0.2.1...v0.3.0

v0.2.1

Choose a tag to compare

@blaubaer blaubaer released this 16 Oct 19:30
042b156

What's Changed

  • Optimize default codec binding and CLI lifecycle allocations by @blaubaer in #15
  • Add framework comparison matrix to README by @blaubaer in #16
  • Improve help formatting and value placeholders by @blaubaer in #17
  • Bump golang.org/x/mod in / by @dependabot[bot] in #18

New Contributors

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@blaubaer blaubaer released this 16 Oct 14:26
5b045c0

What's Changed

  • Add profiles for flags, arguments and commands by @blaubaer in #13
  • Add name and description parameters to CLI constructors by @blaubaer in #14

Full Changelog: v0.1.4...v0.2.0

v0.1.4

Choose a tag to compare

@blaubaer blaubaer released this 15 Oct 18:25
3196259

What's Changed

  • Add extensible enum codecs and help choices by @blaubaer in #12

Full Changelog: v0.1.3...v0.1.4

v0.1.3

Choose a tag to compare

@blaubaer blaubaer released this 15 Oct 16:27
7e78bb2

What's Changed

Full Changelog: v0.1.2...v0.1.3

v0.1.2

Choose a tag to compare

@blaubaer blaubaer released this 15 Oct 11:49
a92652d

What's Changed

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@blaubaer blaubaer released this 15 Oct 10:29
d9db0ee

What's Changed

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@blaubaer blaubaer released this 15 Oct 09:28

The first release of cli4g, a Go library for typed command-line applications with extensible codecs and invocation-scoped resource management.

Highlights

  • Typed options: define flags and positional arguments through struct tags or explicit builders, and receive typed options in handlers.
  • Commands and subcommands: build nested command trees with inherited flags and typed access to parent options.
  • Predictable input handling: explicit CLI, environment, and default precedence; required inputs, aliases, short flags, and repeatable values.
  • Ordered lifecycle: resolve and validate selected options before initialization, then execute handlers from application to leaf command.
  • Managed resources: invocation-owned files and custom resources, with child-to-parent cleanup on success and returned errors, including partial initialization failures.
  • Extensible codecs: built-in support for numeric values, strings, booleans, durations, dates, date-times, files, and slices, plus adapters for custom value types.
  • Customizable help and errors: automatic help, configurable templates, and distinct handling of invalid input, cancellation, and operational failures.
  • Reusable definitions: compile an application once and create independent invocations for repeated or concurrent parsing.

Installation

Requires Go 1.27.0 or later.
go get github.com/echocat/cli4g@v0.1.0

Documentation and examples