chore(deps): update module github.com/urfave/cli to v2 (main) #147

Closed
renovate-bot wants to merge 1 commits from renovate/main-github.com-urfave-cli-2.x into main
Contributor

This PR contains the following updates:

Package Type Update Change
github.com/urfave/cli require major v1.22.5 -> v2.3.0

Release Notes

urfave/cli

v2.3.0

Compare Source

These release notes were written for the git hash 09ac54c.

Fixed

Changed

Added

v2.2.0

Compare Source

These release notes were written for the git hash d648edd

Fixed

Changed

Added

v2.1.1

Compare Source

Fixed a Context regression introduced in v2.1.0 in https://github.com/urfave/cli/pull/1014 via @​lynncyrin

v2.1.0

Compare Source

These release notes were written for the git hash ae84df4cef4a2a6f1a0cb1d41ea0f3af8755e5a8

Fixed
Changed
Added

v2.0.0

Compare Source

V2 was merged in https://github.com/urfave/cli/pull/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 => https://github.com/urfave/cli/issues/826


Added
  • Added NewStringSlice and NewIntSlice for creating their related types
  • Added Float64SliceFlag for unmarshaling a list of floats from the user
  • Added Context.Lineage to get all contexts from current up to global
  • Added Context.LocalFlagNames to get the flag names from only the current context
  • Added BoolFlag.Value to handle both default-false and default-true
  • Added IsSet method to the Flag interface which allows us to detect whether or not a flag has been set
Changed
  • Occurrences of []Command have been changed to []*Command
  • Occurrences of []cli.Flag have been changed to []*cli.Flag
  • Context.FlagNames now returns all flags in the context lineage
  • Context.IsSet now considers the full context lineage
Removed
  • Removed Global* flags since all flags are now global
    • when updating, replace GlobalBool with Bool
    • and GlobalInt with Int
    • and GlobalString with String
    • and so on for any other global flags
  • Removed Context.Parent method, as this is now available via Context.Lineage
    • when updating, replace Context.Parent() with Context.Lineage()[1]
  • Removed the App.Author and App.Email
    • these have been replaced with the Authors []*Author field
  • Removed the ability to specify multiple entries in the Command.Name field
    • when updating, replace Name: "a, b, c" with Name: "a", Aliases: []string{"b", "c"}
  • Removed the Command.ShortName field
    • when updating, replace ShortName: "i" with Aliases: []string{"i"}
  • 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 Action func signature
  • Removed BoolTFlag and related code, as this is now available via BoolFlag.Value

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 you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/urfave/cli](https://github.com/urfave/cli) | require | major | `v1.22.5` -> `v2.3.0` | --- ### Release Notes <details> <summary>urfave/cli</summary> ### [`v2.3.0`](https://github.com/urfave/cli/releases/v2.3.0) [Compare Source](https://github.com/urfave/cli/compare/v2.2.0...v2.3.0) These release notes were written for the git hash [`09ac54c`](https://github.com/urfave/cli/commit/09ac54c2f97f4249282baf266c54a09fab1bef58). #### Fixed - Fixed a bug 'Unable to load file' in altsrc in [#&#8203;1086](https://github.com/urfave/cli/issues/1086) via [@&#8203;akramarenkov](https://github.com/akramarenkov) - Fixed a bug where `App.ErrWriter` not being initialized in `App.Setup()` in [#&#8203;1100](https://github.com/urfave/cli/issues/1100) via [@&#8203;Nokel81](https://github.com/Nokel81) - Harmonize BeforeError handling in [#&#8203;1117](https://github.com/urfave/cli/issues/1117) via [@&#8203;creekorful](https://github.com/creekorful) - Fixed a bug where the default value is not set in the `Destination` field in the `StringSliceFlag` in [#&#8203;1121](https://github.com/urfave/cli/issues/1121) via [@&#8203;sgoroshko](https://github.com/sgoroshko) - Fixed a bug where the version flag was shown unexpectedly on commands with subcommands in [#&#8203;1153](https://github.com/urfave/cli/issues/1153) via [@&#8203;lrioth](https://github.com/lrioth) - Fixed a bug where the default `StringSlice` values would be mutated in [#&#8203;1170](https://github.com/urfave/cli/issues/1170) via [@&#8203;tych0](https://github.com/tych0) - Fixed a bug where values set by environment var are not saved to existing stringslice reference in [#&#8203;1178](https://github.com/urfave/cli/issues/1178) via [@&#8203;alexcb](https://github.com/alexcb) - Fixed a bug where fish completion did not respect TakesFile on PathFlags in [#&#8203;1198](https://github.com/urfave/cli/issues/1198) via [@&#8203;ErinCall](https://github.com/ErinCall) #### Changed - Improved ZSH Autocompletion (List files on tab with no completion options) in [#&#8203;1130](https://github.com/urfave/cli/issues/1130) via [@&#8203;oleorhagen](https://github.com/oleorhagen) - Improved help text rendering in [#&#8203;1175](https://github.com/urfave/cli/issues/1175) via [@&#8203;imle](https://github.com/imle) #### Added - Added support for Go 1.14 in [#&#8203;1085](https://github.com/urfave/cli/issues/1085) via [@&#8203;lynncyrin](https://github.com/lynncyrin) - Added support for Powershell autocompletion in [#&#8203;1139](https://github.com/urfave/cli/issues/1139) via [@&#8203;kirinnee](https://github.com/kirinnee) - Added support for using `Value` with `TimeStamp` flag in [#&#8203;1160](https://github.com/urfave/cli/issues/1160) via [@&#8203;vschettino](https://github.com/vschettino) - Added ShowSubcommandHelpAndExit to print help for the given subcommand and exit with exit code in [#&#8203;1183](https://github.com/urfave/cli/issues/1183) via [@&#8203;knqyf263](https://github.com/knqyf263) - Expose the constructor of `MapInputSource` type in [#&#8203;1194](https://github.com/urfave/cli/issues/1194) via [@&#8203;igorrius](https://github.com/igorrius) - Added support for a `App.Reader` that defaults to `os.Stdin` via [#&#8203;1191](https://github.com/urfave/cli/issues/1191) via [@&#8203;stellirin](https://github.com/stellirin) ### [`v2.2.0`](https://github.com/urfave/cli/releases/v2.2.0) [Compare Source](https://github.com/urfave/cli/compare/v2.1.1...v2.2.0) These release notes were written for the git hash [`d648edd`](https://github.com/urfave/cli/commit/d648edd48d89ef3a841b1ec75c2ebbd4de5f748f) #### Fixed - Fixed zsh completion scripts in [#&#8203;1062](https://github.com/urfave/cli/issues/1062) via [@&#8203;zhsj](https://github.com/zhsj) - Fixed description of subcommand to be more consistent in [#&#8203;1054](https://github.com/urfave/cli/issues/1054) via [@&#8203;itchyny](https://github.com/itchyny) - Fixed possible runtime panic in slice parsing in [#&#8203;1049](https://github.com/urfave/cli/issues/1049) via [@&#8203;saschagrunert](https://github.com/saschagrunert) - Fixed invalid man page header generation in [#&#8203;1041](https://github.com/urfave/cli/issues/1041) via [@&#8203;saschagrunert](https://github.com/saschagrunert) #### Changed - Improved auto-completion instructions and added example gifs in [#&#8203;1059](https://github.com/urfave/cli/issues/1059) via [@&#8203;masonj188](https://github.com/masonj188) - Removed the author from generated man pages in [#&#8203;1041](https://github.com/urfave/cli/issues/1041) via [@&#8203;saschagrunert](https://github.com/saschagrunert) #### Added - Added destination field to StringSliceFlag in [#&#8203;1078](https://github.com/urfave/cli/issues/1078) via [@&#8203;davidsbond](https://github.com/davidsbond) - Added HideHelpCommand. While HideHelp hides both help command and --help flag, HideHelpCommand only hides help command and leave --help flag as-is in [#&#8203;1083](https://github.com/urfave/cli/issues/1083) via [@&#8203;AkihiroSuda](https://github.com/AkihiroSuda) - Added timestampFlag docs in [#&#8203;997](https://github.com/urfave/cli/issues/997) via [@&#8203;drov0](https://github.com/drov0) - Added required flags documentation in [#&#8203;1008](https://github.com/urfave/cli/issues/1008) via [@&#8203;lynncyrin](https://github.com/lynncyrin), [@&#8203;anberns](https://github.com/anberns) ### [`v2.1.1`](https://github.com/urfave/cli/releases/v2.1.1) [Compare Source](https://github.com/urfave/cli/compare/v2.1.0...v2.1.1) Fixed a `Context` regression introduced in `v2.1.0` in https://github.com/urfave/cli/pull/1014 via [@&#8203;lynncyrin](https://github.com/lynncyrin) ### [`v2.1.0`](https://github.com/urfave/cli/releases/v2.1.0) [Compare Source](https://github.com/urfave/cli/compare/v2.0.0...v2.1.0) These release notes were written for the git hash [ae84df4cef4a2a6f1a0cb1d41ea0f3af8755e5a8](https://github.com/urfave/cli/tree/ae84df4cef4a2a6f1a0cb1d41ea0f3af8755e5a8) ##### Fixed - Fixed some golint errors in https://github.com/urfave/cli/pull/988 via [@&#8203;liamchampton](https://github.com/liamchampton) - Fixed a panic with flag completion https://github.com/urfave/cli/pull/946 via [@&#8203;unRob](https://github.com/unRob) ##### Changed - Changed docs generation to use visible flags in https://github.com/urfave/cli/pull/999 via [@&#8203;subpop](https://github.com/subpop) - Changed `App.Run` to use an optional context for timeouts and cancellation in https://github.com/urfave/cli/pull/975 via [@&#8203;marwan-at-work](https://github.com/marwan-at-work) - Changed version info to be hidden if the user has not defined a version in https://github.com/urfave/cli/pull/955 via [@&#8203;asahasrabuddhe](https://github.com/asahasrabuddhe) - Changed docs generation to take into account multiple authors in https://github.com/urfave/cli/pull/900 via [@&#8203;saschagrunert](https://github.com/saschagrunert) - Changed context to expose a `Value` accessor in https://github.com/urfave/cli/pull/741 via [@&#8203;corruptmemory](https://github.com/corruptmemory) ##### Added - Added timestamp flag in https://github.com/urfave/cli/pull/987 via [@&#8203;drov0](https://github.com/drov0) ### [`v2.0.0`](https://github.com/urfave/cli/releases/v2.0.0) [Compare Source](https://github.com/urfave/cli/compare/v1.22.5...v2.0.0) V2 was merged in https://github.com/urfave/cli/pull/892, which included the work of all of these contributors: [@&#8203;asahasrabuddhe](https://github.com/asahasrabuddhe), [@&#8203;meatballhat](https://github.com/meatballhat), [@&#8203;jszwedko](https://github.com/jszwedko), [@&#8203;lynncyrin](https://github.com/lynncyrin), [@&#8203;AudriusButkevicius](https://github.com/AudriusButkevicius), [@&#8203;saschagrunert](https://github.com/saschagrunert), [@&#8203;rliebz](https://github.com/rliebz), [@&#8203;johnweldon](https://github.com/johnweldon), [@&#8203;nlewo](https://github.com/nlewo), [@&#8203;grubernaut](https://github.com/grubernaut), [@&#8203;OneOfOne](https://github.com/OneOfOne), [@&#8203;VMitov](https://github.com/VMitov), [@&#8203;cbranch](https://github.com/cbranch), [@&#8203;marwan-at-work](https://github.com/marwan-at-work), [@&#8203;uudashr](https://github.com/uudashr), [@&#8203;bfreis](https://github.com/bfreis) Discuss the state of V2 here => https://github.com/urfave/cli/issues/826 *** ##### Added - Added `NewStringSlice` and `NewIntSlice` for creating their related types - Added `Float64SliceFlag` for unmarshaling a list of floats from the user - Added `Context.Lineage` to get all contexts from current up to global - Added `Context.LocalFlagNames` to get the flag names from *only* the current context - Added `BoolFlag.Value` to handle both default-false and default-true - Added `IsSet` method to the `Flag` interface which allows us to detect whether or not a flag has been set ##### Changed - Occurrences of `[]Command` have been changed to `[]*Command` - Occurrences of `[]cli.Flag` have been changed to `[]*cli.Flag` - `Context.FlagNames` now returns all flags in the context lineage - `Context.IsSet` now considers the full context lineage ##### Removed - Removed `Global*` flags since all flags are now global - when updating, replace `GlobalBool` with `Bool` - and `GlobalInt` with `Int` - and `GlobalString` with `String` - and so on for any other global flags - Removed `Context.Parent` method, as this is now available via `Context.Lineage` - when updating, replace `Context.Parent()` with `Context.Lineage()[1]` - Removed the `App.Author` and `App.Email` - these have been replaced with the `Authors []*Author` field - Removed the ability to specify multiple entries in the `Command.Name` field - when updating, replace `Name: "a, b, c"` with `Name: "a", Aliases: []string{"b", "c"}` - Removed the `Command.ShortName` field - when updating, replace `ShortName: "i"` with `Aliases: []string{"i"}` - 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 `Action` func signature - Removed `BoolTFlag` and related code, as this is now available via `BoolFlag.Value` </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
renovate-bot added 1 commit 2022-01-19 08:01:24 +00:00
chore(deps): update module github.com/urfave/cli to v2
Some checks failed
renovate/artifacts Artifact file update failure
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
13d9cce3b5
Owner

We reverted to v1 for better arg handling. Closing.

We reverted to v1 for better arg handling. Closing.
decentral1se closed this pull request 2022-01-19 10:12:12 +00:00
Author
Contributor

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 2.x releases. However, if you upgrade to 2.x manually then Renovate will then reenable updates for minor and patch updates automatically.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.

### Renovate Ignore Notification As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for *any* future 2.x releases. However, if you upgrade to 2.x manually then Renovate will then reenable updates for minor and patch updates automatically. If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.
Some checks failed
renovate/artifacts Artifact file update failure
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

Pull request closed

Sign in to join this conversation.
No description provided.