Update dependency in_gopkg_urfave_cli_v1 to v1 #1163
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.1.0
->v1.20.0
Release Notes
urfave/cli
v1.20.0
Compare Source
v1.19.1
Compare Source
Fixed
ActionFunc
asthe
Action
for a command would cause it to error rather than calling thefunction. Should not have a affected declarative cases using
func(c *cli.Context) err)
.--generate-bash-completion
immediately after a flag that takes an argument.Previously it call the application with
--generate-bash-completion
as theflag value.
v1.19.0
Compare Source
Added
FlagsByName
was added to make it easy to sort flags (e.g.sort.Sort(cli.FlagsByName(app.Flags))
)Description
field was added toApp
for a more detailed description ofthe application (similar to the existing
Description
field onCommand
)go generate
altsrc
loaderSkipArgReorder
was added to allow users to skip the argument reordering.This is useful if you want to consider all "flags" after an argument as
arguments rather than flags (the default behavior of the stdlib
flag
library). This is backported functionality from the removal of the flag
reordering in the unreleased version
2
ErrorFormatter
), the errors willbe formatted during output. Compatible with
pkg/errors
.Changed
Fixed
with the equivalent of
""
would be skipped rather than their value used).as the flag type. Previously these errors were silently swallowed.
App.Writer
defaults tostdout
whennil
panic
ingApp.Metadata
is initialized automatically now (previously wasnil
unless initialized)-h
is provided to a subcommandcontext.(Global)IsSet
now respects environment variables. Previously itwould return
false
if a flag was specified in the environment rather thanas an argument
altsrc
s import paths were updated to usegopkg.in/urfave/cli.v1
. Thisfixes issues that occurred when
gopkg.in/urfave/cli.v1
was imported as wellas
altsrc
where Go would complain that the types didn't matchv1.18.1
Compare Source
Fixed
v1.18.0
Compare Source
Added
./runtests
test runner with coverage tracking by defaultUintFlag
,Uint64Flag
, andInt64Flag
types and supporting codeChanged
output alignment consistent regardless of tab width
Fixed
help
subcommand when usingCommandCategories
panic
s that occur within theAction
s themselves whendetecting the signature of the
Action
fieldv1.17.1
Compare Source
Fixed
v1.17.0
Compare Source
Added
cli.DefaultFlagStringFunc
context.GlobalBoolT
was added as an analogue tocontext.GlobalBool
Hidden: true
-- this will hide thecommands in help output
Changed
Float64Flag
,IntFlag
, andDurationFlag
default values are no longerquoted in help text output.
(default: {value})
strings following usage when adefault value can be (reasonably) detected.
IntSliceFlag
andStringSliceFlag
usage strings are now more consistentwith non-slice flag types
(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 trustthat a 0 exit code indicated a successful execution.
feedback
v1.16.1
Compare Source
Fixed
v1.16.0
Compare Source
Added
Hidden
field on all flag struct types to omit from generated help textChanged
BashCompletionFlag
(--enable-bash-completion
) is now omitted fromgenerated help text via the
Hidden
fieldFixed
HandleAction
andHandleExitCoder
v1.15.0
Compare Source
Added
CHANGELOG.md
file!App.Metadata
map for arbitrary data/state managementSet
andGlobalSet
methods on*cli.Context
for altering values afterparsing.
YAML.
Changed
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:cli.ExitCoder
, thenos.Exit
will be calledautomatically
App.Run
Action
with the legacy return signature offunc(*cli.Context)
will produce a deprecation message to stderrAction
that is not afunc
type will produce a non-zero exitfrom
App.Run
Action
func that has an invalid (input) signature willproduce a non-zero exit from
App.Run
Deprecated
cli.App.RunAndExitOnError
, which should now be done by returning an errorthat fulfills
cli.ExitCoder
tocli.App.Run
.cli.App.Action
offunc(*cli.Context)
, which should now have a returnsignature of
func(*cli.Context) error
, as defined bycli.ActionFunc
.Fixed
*cli.Context.GlobalFloat64
methodv1.14.0
Compare Source
v1.13.0
Compare Source
v1.12.0
Compare Source
v1.11.1
Compare Source
v1.11.0
Compare Source
v1.10.2
Compare Source
v1.10.1
Compare Source
v1.10.0
Compare Source
v1.9.0
Compare Source
v1.8.0
Compare Source
v1.7.1
Compare Source
v1.7.0
Compare Source
v1.6.0
Compare Source
v1.5.0
Compare Source
v1.4.1
Compare Source
v1.4.0
Compare Source
v1.3.1
Compare Source
v1.3.0
Compare Source
v1.2.0
Compare Source
v1.1.0
Compare Source
v1.0.0
Compare Source
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.