Skip to content

Releases: ditrit/verdeter

Release version 0.4.0

20 Jan 11:59
a80cd58
Compare
Choose a tag to compare

[0.4.0] - 2023/01/20

Added

  • Added a normalizer package.
  • Added LowerString, UpperString normalizers.
  • Added an URL validator.
  • Now all validation errors are displayed if there are any. Before verdeter quit on the first error.
  • Now all natives feature of cobra are available through the VerdeterConfig type and the build function.

Fixed

  • Fixed a bug: the SetDefault method now panic if called on an undeclared config key.

Changed

  • The signature of AuthorizedValues was altered to make it more understandable.

Release version 0.3.1

09 Nov 12:48
5078c5a
Compare
Choose a tag to compare

[0.3.1] - 2022/11/09

Fixed

  • Fixed an initialization bug. The initialization function did not run when a subcommand was called. This caused the command to fail it's validation step.

Release version 0.3.0

31 Oct 15:58
43cff42
Compare
Choose a tag to compare

[0.3.0] - 2022/10/31

Added

  • A method named Lookup on the VerdeterCommand type. It allow to search in both local and global config keys. If no config key is found, it return nil.

Changed

  • The tasks in the CI are now ran in parallel.
  • The VerdeterCommand method SetValidator is now named AddValidator. Although the argument list did not change, the behavior did. Now the method will add a validator to the ConfigKey validators list.

Fixed

  • fixed a bug regarding the validation cascade in multicommand app. The validation function of a root Command return an error on valid input when a subcommand was called.

Release version 0.2.1

11 Oct 09:30
dbf8c0b
Compare
Choose a tag to compare

[0.2.1] - 2022/10/11

Fixed

  • fixed a bug in the command initialization that affected multicommand apps: the initialisation function ran multiples times instead of running one time on the root command. Now the initialisation is ran in the pre run step only on the root command.
  • fixed configuration search to be posix compliant.

Release version 0.2.0

06 Oct 11:23
3155cde
Compare
Choose a tag to compare

[0.2.0] - 2022/10/06

Added

  • Add Uint type for config keys. It prevents the user from creating a validator to check that the value is not <0 .
  • Add a validator named AuthorizedValues that check if the value of a config key is contained in a defined array of authorized values.

Release version 0.1.0

06 Sep 14:29
06c5aaf
Compare
Choose a tag to compare

[0.1.0] - 2022/09/06

Added

  • Setup project (ci and sonar)
  • Setup e2e test solution (cucumber + docker).
  • This project was imported from github.com/ditrit/gandalf/verdeter