All Versions
47
Latest Version
Avg Release Cycle
121 days
Latest Release
1718 days ago
Changelog History
Page 3
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 tocontext.GlobalBool
- ๐ Support for hiding commands by setting
Hidden: true
-- this will hide the
commands in help output
๐ Changed
- 0๏ธโฃ
Float64Flag
,IntFlag
, andDurationFlag
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
andStringSliceFlag
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 usingcli
since they can trust
that a 0 exit code indicated a successful execution. - cleanups based on Go Report Card
feedback
- ๐ Pluggable flag-level help text rendering via
-
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 theHidden
field
๐ Fixed
- handling of error values in
HandleAction
andHandleExitCoder
-
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
andGlobalSet
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
andCommand.Action
now prefer a return signature offunc(*cli.Context) error
, as defined bycli.ActionFunc
. If a non-nilerror
is returned, there may be two outcomes:- If the error fulfills
cli.ExitCoder
, thenos.Exit
will be called automatically - Else the error is bubbled up and returned from
App.Run
- If the error fulfills
- 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 afunc
type will produce a non-zero exit fromApp.Run
- Specifying an
Action
func that has an invalid (input) signature will produce a non-zero exit fromApp.Run
๐ Deprecated
- ๐
cli.App.RunAndExitOnError
, which should now be done by returning an error that fulfillscli.ExitCoder
tocli.App.Run
. - ๐ the legacy signature for
cli.App.Action
offunc(*cli.Context)
, which should now have a return signature offunc(*cli.Context) error
, as defined bycli.ActionFunc
.
๐ Fixed
- โ Added missing
*cli.Context.GlobalFloat64
method
-
v1.14.0 Changes
April 03, 2016โ Added
- Codebeat badge
- ๐ Support for categorization via
CategorizedHelp
andCategories
on app.
๐ Changed
- ๐ Use
filepath.Base
instead ofpath.Base
inName
andHelpName
.
๐ 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
inName
andHelpName
- Export
GetName
on flag types.
๐ Fixed
- ๐ Flag parsing when skipping is enabled.
- โ Test output cleanup.
- ๐ Move completion check to account for empty input case.
- ๐ Use
-
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.