Skip to content

Releases: xgfone/gconf

v2.0.0-beta.4

13 Jun 05:53
Compare
Choose a tag to compare
  • Fix a bug about decoder alias.

v2.0.0-beta.3

13 Jun 05:51
Compare
Choose a tag to compare
  • Added:
    • Add the method SetStringVersion to simplify the version setting.
    • Add the alias of the type name of the decoder.
    • Add some global functions, which are equal to the methods of the global config Conf.
  • Changed:
    • The type name of the decoder is case insensitive.
    • The format of the file source is ini.
  • Removed:
    • Some methods, such as Observe or SetErrHandler, don't return *Config.

v2.0.0-beta.2

13 Jun 01:48
Compare
Choose a tag to compare
  • Added:
    • Add the method MustOpt(optName) for OptGroup.
    • Add the github.com/urfave/cli source.
    • Add the HTTP URL source.
  • Others:
    • Ignore empty data when loading and watching the source.

v2.0.0-beta

12 Jun 07:48
Compare
Choose a tag to compare

Pre-release v2.0.0

v1.5.0

24 Apr 08:42
Compare
Choose a tag to compare
  • Added:
    • Add the support of the hot-reloading, but only the INI and the Property parsers support it.
  • Changed:
    • Call the method Post() of all the parsers in reversed turn.
    • Allow SetPrintf, Observe() be called at any time, not only before parsing.
    • Use Debugf() instead of Printf() for the debug log, and Printf always outputs the log.
    • Initialize all the options by the default(if exists) or zero(if enabled) before parsing instead when checking.
    • Cancel some unparsed checks, so you can call Stop(), SetCliParsed(), UpdateOptValue and SetExecutedCommand() before parsing to write yourself parsing process.
    • The INI and the Property parsers ignore the nonexistent file, and update all the options after parsing them, so if a certain option is error, the entire fails and no option is updated.
  • Deprecated:
    • Deprecate the priority of the option, such as the function SetOptValue() and Priority(). Please use UpdateOptValue(), LockOpt() and UnlockOpt() instead.
  • Fixed:
    • Fix some validator errors.

v1.4.0

23 Apr 07:37
Compare
Choose a tag to compare
  • Change: print the type of the bool flag when outputting the usage.
  • Other: remove the redundancy code.

v1.3.0

23 Apr 06:16
Compare
Choose a tag to compare
  • Change: loosen the limitation of the option key, and only allow the non-space printable characters.

v1.2.1

23 Apr 05:48
Compare
Choose a tag to compare
  • Fix: use the group separator instead of the constant ".".
  • Update: the default config resets the flag usage with PrintFlagUsage().

v1.2.0

23 Apr 01:54
Compare
Choose a tag to compare
  • Added: add PrintFlagUsage instead of the default flag usage, which output double-hyphen -- instead of - for the long flag name, such as -v vs --version

v1.0.1

19 Apr 07:35
Compare
Choose a tag to compare

Fix the option name for the struct field when renaming it by the tag.