All Versions
47
Latest Version
Avg Release Cycle
121 days
Latest Release
1718 days ago

Changelog History
Page 3

  • v1.17.1 Changes

    August 29, 2016

    ๐Ÿ›  Fixed

    • โœ‚ Removed deprecation warnings to STDERR to avoid them leaking to the end-user (backported)
  • v1.17.0 Changes

    May 09, 2016

    โž• Added

    • ๐Ÿ”Œ Pluggable flag-level help text rendering via cli.DefaultFlagStringFunc
    • context.GlobalBoolT was added as an analogue to context.GlobalBool
    • ๐Ÿ‘Œ Support for hiding commands by setting Hidden: true -- this will hide the
      commands in help output

    ๐Ÿ”„ Changed

    • 0๏ธโƒฃ Float64Flag, IntFlag, and DurationFlag default values are no longer
      quoted in help text output.
    • 0๏ธโƒฃ All flag types now include (default: {value}) strings following usage when a
      0๏ธโƒฃ default value can be (reasonably) detected.
    • IntSliceFlag and StringSliceFlag usage strings are now more consistent
      with non-slice flag types
    • Apps now exit with a code of 3 if an unknown subcommand is specified
      ๐Ÿ–จ (previously they printed "No help topic for...", but still exited 0. This
      ๐Ÿ‘‰ makes it easier to script around apps built using cli since they can trust
      that a 0 exit code indicated a successful execution.
    • cleanups based on Go Report Card
      feedback
  • v1.16.1 Changes

    August 29, 2016

    ๐Ÿ›  Fixed

    • โœ‚ Removed deprecation warnings to STDERR to avoid them leaking to the end-user (backported)
  • v1.16.0 Changes

    May 02, 2016

    โž• Added

    • Hidden field on all flag struct types to omit from generated help text

    ๐Ÿ”„ Changed

    • BashCompletionFlag (--enable-bash-completion) is now omitted from
      generated help text via the Hidden field

    ๐Ÿ›  Fixed

    • handling of error values in HandleAction and HandleExitCoder
  • v1.15.0 Changes

    April 30, 2016

    โž• Added

    • This file!
    • ๐Ÿ‘Œ Support for placeholders in flag usage strings
    • ๐Ÿ“‡ App.Metadata map for arbitrary data/state management
    • Set and GlobalSet methods on *cli.Context for altering values after ๐Ÿ“œ parsing.
    • ๐Ÿ‘Œ Support for nested lookup of dot-delimited keys in structures loaded from YAML.

    ๐Ÿ”„ Changed

    • The App.Action and Command.Action now prefer a return signature of func(*cli.Context) error, as defined by cli.ActionFunc. If a non-nil error is returned, there may be two outcomes:
      • If the error fulfills cli.ExitCoder, then os.Exit will be called automatically
      • Else the error is bubbled up and returned from App.Run
    • Specifying an Action with the legacy return signature of ๐Ÿ—„ func(*cli.Context) will produce a deprecation message to stderr
    • Specifying an Action that is not a func type will produce a non-zero exit from App.Run
    • Specifying an Action func that has an invalid (input) signature will produce a non-zero exit from App.Run

    ๐Ÿ—„ Deprecated

    • ๐Ÿ—„ cli.App.RunAndExitOnError, which should now be done by returning an error that fulfills cli.ExitCoder to cli.App.Run.
    • ๐Ÿ—„ the legacy signature for cli.App.Action of func(*cli.Context), which should now have a return signature of func(*cli.Context) error, as defined by cli.ActionFunc.

    ๐Ÿ›  Fixed

    • โž• Added missing *cli.Context.GlobalFloat64 method
  • v1.14.0 Changes

    April 03, 2016

    โž• Added

    • Codebeat badge
    • ๐Ÿ‘Œ Support for categorization via CategorizedHelp and Categories on app.

    ๐Ÿ”„ Changed

    • ๐Ÿ‘‰ Use filepath.Base instead of path.Base in Name and HelpName.

    ๐Ÿ›  Fixed

    • Ensure version is not shown in help text when HideVersion set.
  • v1.13.0 Changes

    March 06, 2016

    โž• Added

    • ๐Ÿ‘ YAML file input support.
    • NArg method on context.
  • v1.12.0 Changes

    February 17, 2016

    โž• Added

    • Custom usage error handling.
    • ๐Ÿ‘ Custom text support in USAGE section of help output.
    • ๐Ÿ‘Œ Improved help messages for empty strings.
    • ๐Ÿ‘ท AppVeyor CI configuration.

    ๐Ÿ”„ Changed

    • โœ‚ Removed panic from default help printer func.
    • De-duping and optimizations.

    ๐Ÿ›  Fixed

    • Correctly handle Before/After at command level when no subcommands.
    • Case of literal - argument causing flag reordering.
    • ๐Ÿ Environment variable hints on Windows.
    • ๐Ÿ“„ Docs updates.
  • v1.11.1 Changes

    December 21, 2015

    ๐Ÿ”„ Changed

    • ๐Ÿ‘‰ Use path.Base in Name and HelpName
    • Export GetName on flag types.

    ๐Ÿ›  Fixed

    • ๐Ÿ“œ Flag parsing when skipping is enabled.
    • โœ… Test output cleanup.
    • ๐Ÿšš Move completion check to account for empty input case.
  • v1.11.0 Changes

    November 15, 2015

    โž• Added

    • ๐Ÿ‘ Destination scan support for flags.
    • ๐Ÿ‘ท Testing against tip in Travis CI config.

    ๐Ÿ”„ Changed

    • ๐Ÿ‘ท Go version in Travis CI config.

    ๐Ÿ›  Fixed

    • โœ‚ Removed redundant tests.
    • โœ… Use correct example naming in tests.