Argonaut

Builder style CLI creation kit.

MIT License

Stars
0
Committers
7
Argonaut - v1.4.8 Latest Release

Published by Foxcapades 8 months ago

Fix issue with assigning a raw value default of a type that implements argo.Unmarshaller on a required flag.

Argonaut - v1.4.4

Published by Foxcapades 8 months ago

Fixes issue with untyped function bindings on arguments not being called correctly.

Argonaut - v1.4.3

Published by Foxcapades 12 months ago

Changes

  • No longer attempts to consume invalid arguments for flags that accept optional input. This means that if a boolean flag is set, Argonaut will no longer attempt to eat the next, unrecognized input string as that boolean argument.

Full Changelog: https://github.com/Foxcapades/Argonaut/compare/v1.4.0...v1.4.3

Argonaut - v1.4.0

Published by Foxcapades 12 months ago

  • Adds inherited flags to help text.

Full Changelog: https://github.com/Foxcapades/Argonaut/compare/v1.3.0...v1.4.0

Argonaut - v1.3.0

Published by Foxcapades 12 months ago

What's Changed

  • Feature: Partial match subcommand help.
  • Feature: OnIncomplete handler inheritance
  • Fixes: Optional non-boolean argument help text rendering

Full Changelog: https://github.com/Foxcapades/Argonaut/compare/v1.2.1...v1.3.0

Argonaut - v1.2.1

Published by Foxcapades almost 1 year ago

Fixes

Minor help rendering issue for optional boolean flags

Full Changelog: https://github.com/Foxcapades/Argonaut/compare/v1.2.0...v1.2.1

Argonaut - v1.2.0

Published by Foxcapades about 1 year ago

Features

  • Slices of argo.Unmarshaler, and maps of slices of argo.Unmarshaler may now be deserialized
  • Byte slice parsing is now configurable and allows for parsing any arbitrary format such as hex or base64 into a byte slice.
  • Regular slice parsing is now configurable and allows for splitting values in single arguments based on user defined rules, with a customizable, delimiter based splitter enabled by default.

Fixes

  • Issue where flag callbacks were not necessarily firing in the order they appeared in the CLI call.

Full Changelog: https://github.com/Foxcapades/Argonaut/compare/v1.1.0...v1.2.0

Argonaut - v1.1.0

Published by Foxcapades about 1 year ago

Features

  • OnIncomplete callback allows a command tree or it's branches to call a provided function when a leaf command is not reached.
  • Support for time.Time bindings with configurable datetime formats
  • Argument validation callbacks: Callbacks may be provided to arguments that will be called to validate raw and/or parsed inputs.
  • Built-in argument validation functions for OneOf, NoneOf, of NumericRange
  • Callbacks on single commands
  • Maps of slices

Full Changelog: https://github.com/Foxcapades/Argonaut/compare/v1.0.3...v1.1.0

Argonaut - v1.0.3

Published by Foxcapades about 1 year ago

Fixed issue with passing in multiple map key/value pairs in a single flag argument.

Argonaut - v1.0.2

Published by Foxcapades about 1 year ago

Improved clarity of help text 'usage' line with required flag arguments.

Argonaut - v1.0.1

Published by Foxcapades about 1 year ago

Fixes issue with a help rendering edge case.

Argonaut - v1.0.0

Published by Foxcapades about 1 year ago

Partial rewrite of the v0 implementation. Now supports command trees in addition to simple commands.