Update module urfave/cli to v2
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| gopkg.in/urfave/cli.v1 | require | major | v1.20.0 -> v2.2.0 |
Release Notes
urfave/cli
v2.2.0
These release notes were written for the git hash d648edd
Fixed
- Fixed zsh completion scripts in #1062 via @zhsj
- Fixed description of subcommand to be more consistent in #1054 via @itchyny
- Fixed possible runtime panic in slice parsing in #1049 via @saschagrunert
- Fixed invalid man page header generation in #1041 via @saschagrunert
Changed
- Improved auto-completion instructions and added example gifs in #1059 via @masonj188
- Removed the author from generated man pages in #1041 via @saschagrunert
Added
- Added destination field to StringSliceFlag in #1078 via @davidsbond
- Added HideHelpCommand. While HideHelp hides both help command and --help flag, HideHelpCommand only hides help command and leave --help flag as-is in #1083 via @AkihiroSuda
- Added timestampFlag docs in #997 via @drov0
- Added required flags documentation in #1008 via @lynncyrin, @anberns
v2.1.1
Fixed a Context regression introduced in v2.1.0 in #1014 via @lynncyrin
v2.1.0
These release notes were written for the git hash ae84df4cef4a2a6f1a0cb1d41ea0f3af8755e5a8
Fixed
- Fixed some golint errors in #988 via @liamchampton
- Fixed a panic with flag completion #946 via @unRob
Changed
- Changed docs generation to use visible flags in #999 via @subpop
- Changed
App.Runto use an optional context for timeouts and cancellation in #975 via @marwan-at-work - Changed version info to be hidden if the user has not defined a version in #955 via @asahasrabuddhe
- Changed docs generation to take into account multiple authors in #900 via @saschagrunert
- Changed context to expose a
Valueaccessor in #741 via @corruptmemory
Added
v2.0.0
V2 was merged in #892, which included the work of all of these contributors: @asahasrabuddhe, @meatballhat, @jszwedko, @lynncyrin, @AudriusButkevicius, @saschagrunert, @rliebz, @johnweldon, @nlewo, @grubernaut, @OneOfOne, @VMitov, @cbranch, @marwan-at-work, @uudashr, @bfreis
Discuss the state of V2 here => #826
Added
- Added
NewStringSliceandNewIntSlicefor creating their related types - Added
Float64SliceFlagfor unmarshaling a list of floats from the user - Added
Context.Lineageto get all contexts from current up to global - Added
Context.LocalFlagNamesto get the flag names from only the current context - Added
BoolFlag.Valueto handle both default-false and default-true - Added
IsSetmethod to theFlaginterface which allows us to detect whether or not a flag has been set
Changed
- Occurrences of
[]Commandhave been changed to[]*Command - Occurrences of
[]cli.Flaghave been changed to[]*cli.Flag -
Context.FlagNamesnow returns all flags in the context lineage -
Context.IsSetnow considers the full context lineage
Removed
- Removed
Global*flags since all flags are now global- when updating, replace
GlobalBoolwithBool - and
GlobalIntwithInt - and
GlobalStringwithString - and so on for any other global flags
- when updating, replace
- Removed
Context.Parentmethod, as this is now available viaContext.Lineage- when updating, replace
Context.Parent()withContext.Lineage()[1]
- when updating, replace
- Removed the
App.AuthorandApp.Email- these have been replaced with the
Authors []*Authorfield
- these have been replaced with the
- Removed the ability to specify multiple entries in the
Command.Namefield- when updating, replace
Name: "a, b, c"withName: "a", Aliases: []string{"b", "c"}
- when updating, replace
- Removed the
Command.ShortNamefield- when updating, replace
ShortName: "i"withAliases: []string{"i"}
- when updating, replace
- Removed all
Context.Global*methods, as the non-global versions now traverse up the context lineage automatically. - Removed the ability to specify
&StringSlice{...string}or&IntSlice{...int}. - Removed adapter code for deprecated
Actionfunc signature - Removed
BoolTFlagand related code, as this is now available viaBoolFlag.Value
v1.22.4
These release notes were written for the git hash 053ba9d
Fixed
- Fixed a panic with flag completion in #1101 via @unRob, @VirrageS
v1.22.3
Fixed
- String flag no longer persists the default value if the flag is explicitly initialized in #981 via @asahasrabuddhe
-
context.IsSet()returnstrueorfalsecorrectly regardless of whether the short name or the full name of the flag is passed to it in #978 via @asahasrabuddhe - Hide version if the version is not set by the user in #954 via @asahasrabuddhe
v1.22.2
Fixed
- Fix v1.21.0 pass through regression in urfave/cli/pull/872 via @lynncyrin
- Fix infinite loop when parsing invalid flags for apps with short option handling in urfave/cli/pull/911 via @rliebz
- Fix zsh autocomplete in urfave/cli/pull/906 via @gnowxilef
- Fix typo in
DocGenerationFlag.TakesValue()docstring in urfave/cli/pull/902 via @benmoose - Avoid panic for missing flag value in urfave/cli/pull/893 via @rliebz
Changed
- Simplify
HelpPrinterandCustomHelpPrinterbehaviors in urfave/cli/pull/912 via @rliebz
v1.22.1
🚧 Watch out! There's a known regression in this release! #850 🚧
Fixed
- Hide output of hidden commands on man pages in urfave/cli/pull/889 via @crosbymichael
- Don't generate fish completion for hidden commands urfave/cli/pull/891 via @saschagrunert
- Using short flag names for required flags throws an error in urfave/cli/pull/890 via @asahasrabuddhe
Changed
- Remove flag code generation logic, legacy python test runner in urfave/cli/pull/883 via @asahasrabuddhe
- Enable Go Modules support, drop support for
Go 1.10add support forGo 1.13in urfave/cli/pull/885 via @asahasrabuddhe
v1.22.0
🚧 Watch out! There's a known regression in this release! #850 🚧
Fixed
- Fix Subcommands not falling back to
app.ExitEventHandlerin urfave/cli/pull/856 via @FaranIdo
Changed
- Clarify that altsrc supports both TOML and JSON in urfave/cli/pull/774 via @whereswaldon
- Made the exit code example more clear in urfave/cli/pull/823 via @xordspar0
- Removed the use of python for internal flag generation in urfave/cli/pull/836 via @asahasrabuddhe
- Changed the supported go versions to
1.10,1.11,1.12in urfave/cli/pull/843 via @lafriks - Changed the v1 releases section in the readme in urfave/cli/pull/862 via @russoj88
- Cleaned up go modules in urfave/cli/pull/874 via @saschagrunert
Added
- Added
UseShortOptionHandlingfor combining short flags in urfave/cli/pull/735 via @rliebz - Added support for flags bash completion in urfave/cli/pull/808 via @yogeshlonkar
- Added the
TakesFileindicator to flag in urfave/cli/pull/851 via @saschagrunert - Added fish shell completion support in urfave/cli/pull/848 via @saschagrunert
v1.21.0
🚧 Watch out! There's a known regression in this release! #850 🚧
Fixed
- Fix using "slice" flag types with
EnvVarin urfave/cli/pull/687 via @joshuarubin - Fix regression of
SkipFlagParsingbehavior in urfave/cli/pull/697 via @jszwedko - Fix handling
ShortOptionsandSkipArgReorderin urfave/cli/pull/686 via @baude - Fix args reordering when bool flags are present in urfave/cli/pull/712 via @windler
- Fix parsing of short options in urfave/cli/pull/758 via @vrothberg
Added / Changed
- Added "required flags" support in urfave/cli/pull/819 via @lynncyrin
- Cleaned up help output in urfave/cli/pull/664 via @maguro
- Case is now considered when sorting strings in urfave/cli/pull/676 via @rliebz
- Backport JSON
InputSourceto v1 in urfave/cli/pull/598 via @jszwedko - Allow more customization of flag help strings in urfave/cli/pull/661 via @rliebz
- Allow custom
ExitErrorhandler function in urfave/cli/pull/628 via @phinnaeus - Allow loading a variable from a file in urfave/cli/pull/675 via @jmccann
- Allow combining short bool names in urfave/cli/pull/684 via @baude
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.
:warning: Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
:recycle: Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you check the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: go.sum
Command failed: docker run --rm --name=renovate_go --label=renovate_child -v "/mnt/renovate/gh/angelbarrera92/basic-auth-reverse-proxy":"/mnt/renovate/gh/angelbarrera92/basic-auth-reverse-proxy" -v "/tmp/renovate-cache":"/tmp/renovate-cache" -v "/tmp/renovate-cache/others/go":"/tmp/renovate-cache/others/go" -e GOPATH -e CGO_ENABLED -w "/mnt/renovate/gh/angelbarrera92/basic-auth-reverse-proxy" renovate/go:1.12.17 bash -l -c "git config --global url.\"https://x-access-token:**redacted**@github.com/\".insteadOf \"https://github.com/\" && go get -d ./..."
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding gopkg.in/urfave/cli.v2 v2.2.0
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: gopkg.in/urfave/[email protected]: go.mod has non-....v2 module path "github.com/urfave/cli/v2" at revision v2.2.0
go: error loading module requirements