Update module github.com/urfave/cli to v2 - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
github.com/urfave/cli | require | major |
v1.22.10 -> v2.20.3
|
Release Notes
urfave/cli
v2.20.3
What's Changed
- Docs:(issue_1276) Make destination/value/default text clear by @dearchap in https://github.com/urfave/cli/pull/1539
- Fix:(issue_1263) FlagNames should return names set via env as well by @dearchap in https://github.com/urfave/cli/pull/1537
- Fix:(issue_1288). Add windows specific env format by @dearchap in https://github.com/urfave/cli/pull/1538
Full Changelog: https://github.com/urfave/cli/compare/v2.20.2...v2.20.3
v2.20.2
What's Changed
- Fix:(issue_1206) Default value shouldnt depend on env variable or val… by @dearchap in https://github.com/urfave/cli/pull/1528
Full Changelog: https://github.com/urfave/cli/compare/v2.20.1...v2.20.2
v2.20.1
What's Changed
- Docs: Fix docs from merged MR1498 by @dearchap in https://github.com/urfave/cli/pull/1532
- Cleanup: Fix app.go formatting by @dearchap in https://github.com/urfave/cli/pull/1533
Full Changelog: https://github.com/urfave/cli/compare/v2.20.0...v2.20.1
v2.20.0
What's Changed
- Cleanup redundant code in App/Command by @dearchap in https://github.com/urfave/cli/pull/1498
Full Changelog: https://github.com/urfave/cli/compare/v2.19.3...v2.20.0
v2.19.3
What's Changed
- Build and run
urfave-cli-genflags
via itsMakefile
by @meatballhat in https://github.com/urfave/cli/pull/1526
Full Changelog: https://github.com/urfave/cli/compare/v2.19.2...v2.19.3
v2.19.2
What's Changed
- fix: stop automatic sorting for --help by @FGYFFFF in https://github.com/urfave/cli/pull/1430
New Contributors
- @FGYFFFF made their first contribution in https://github.com/urfave/cli/pull/1430
Full Changelog: https://github.com/urfave/cli/compare/v2.19.1...v2.19.2
v2.19.1
What's Changed
- Fix:(issue_1500). Fix slice flag value duplication issue by @dearchap in https://github.com/urfave/cli/pull/1502
Full Changelog: https://github.com/urfave/cli/compare/v2.19.0...v2.19.1
v2.19.0
What's Changed
- Fix:(issue_1505) Fix flag alignment in help by @dearchap in https://github.com/urfave/cli/pull/1506
Full Changelog: https://github.com/urfave/cli/compare/v2.18.2...v2.19.0
v2.18.2
What's Changed
- Configure GenericFlag's Destination type as struct not pointer by @nkuba in https://github.com/urfave/cli/pull/1442
New Contributors
- @nkuba made their first contribution in https://github.com/urfave/cli/pull/1442
Full Changelog: https://github.com/urfave/cli/compare/v2.18.1...v2.18.2
v2.18.1
What's Changed
- Ensure "generate" step runs in CI prior to diff check by @meatballhat in https://github.com/urfave/cli/pull/1504
Full Changelog: https://github.com/urfave/cli/compare/v2.18.0...v2.18.1
v2.18.0
What's Changed
- Call FlagStringer in String() method of slice flags by @fjl in https://github.com/urfave/cli/pull/1508
New Contributors
- @fjl made their first contribution in https://github.com/urfave/cli/pull/1508
Full Changelog: https://github.com/urfave/cli/compare/v2.17.2...v2.18.0
v2.17.2
What's Changed
- Remove nonexistent phony targets by @meatballhat in https://github.com/urfave/cli/pull/1503
- wrap: Avoid trailing whitespace for empty lines by @abitrolly in https://github.com/urfave/cli/pull/1513
New Contributors
- @abitrolly made their first contribution in https://github.com/urfave/cli/pull/1513
Full Changelog: https://github.com/urfave/cli/compare/v2.17.1...v2.17.2
v2.17.1
What's Changed
- Fix help results inconsistency by @dearchap in https://github.com/urfave/cli/pull/1499
Full Changelog: https://github.com/urfave/cli/compare/v2.17.0...v2.17.1
v2.17.0
What's Changed
- Flag-level Action by @xwjdsh in https://github.com/urfave/cli/pull/1337
New Contributors
- @xwjdsh made their first contribution in https://github.com/urfave/cli/pull/1337
Full Changelog: https://github.com/urfave/cli/compare/v2.16.6...v2.17.0
v2.16.6
What's Changed
- fix: Context.Set no such flag by @Torwang1 in https://github.com/urfave/cli/pull/1497
New Contributors
- @Torwang1 made their first contribution in https://github.com/urfave/cli/pull/1497
Full Changelog: https://github.com/urfave/cli/compare/v2.16.5...v2.16.6
v2.16.5
What's Changed
- Fix:(issue_1197) Set destination field from altsrc for slice flags by @dearchap in https://github.com/urfave/cli/pull/1495
Full Changelog: https://github.com/urfave/cli/compare/v2.16.4...v2.16.5
v2.16.4
What's Changed
- Accept the
MKDOCS_REMOTE_GITHUB_TOKEN
var as intended by @meatballhat in https://github.com/urfave/cli/pull/1493
Full Changelog: https://github.com/urfave/cli/compare/v2.16.3...v2.16.4
v2.16.3
What's Changed
- Move more functionality into internal/build/build.go by @meatballhat in https://github.com/urfave/cli/pull/1490
Full Changelog: https://github.com/urfave/cli/compare/v2.16.2...v2.16.3
v2.16.2
What's Changed
- Fix: Help name consistency among app/commands and subcommands by @dearchap in https://github.com/urfave/cli/pull/1489
Full Changelog: https://github.com/urfave/cli/compare/v2.16.1...v2.16.2
v2.16.1
What's Changed
- Set codecov status thresholds to 5% by @meatballhat in https://github.com/urfave/cli/pull/1486
- Fix: dont generate pointer for dest for Generic flag by @dearchap in https://github.com/urfave/cli/pull/1488
Full Changelog: https://github.com/urfave/cli/compare/v2.16.0...v2.16.1
v2.16.0
What's Changed
- Feature:(Issue 1334) Add support for uint64slices by @dearchap in https://github.com/urfave/cli/pull/1378
Full Changelog: https://github.com/urfave/cli/compare/v2.15.0...v2.16.0
v2.15.0
What's Changed
- Add count option for bool flags by @dearchap in https://github.com/urfave/cli/pull/1257
Full Changelog: https://github.com/urfave/cli/compare/v2.14.2...v2.15.0
v2.14.2
What's Changed
- Update version of codecov action by @meatballhat in https://github.com/urfave/cli/pull/1480
- Add a few notes to release docs by @meatballhat in https://github.com/urfave/cli/pull/1479
Full Changelog: https://github.com/urfave/cli/compare/v2.14.1...v2.14.2
v2.14.1
What's Changed
- Fix:(issue_1272) Generic flag not set from env by @dearchap in https://github.com/urfave/cli/pull/1458
- GitHub Workflows security hardening by @sashashura in https://github.com/urfave/cli/pull/1469
New Contributors
- @sashashura made their first contribution in https://github.com/urfave/cli/pull/1469
Full Changelog: https://github.com/urfave/cli/compare/v2.14.0...v2.14.1
v2.14.0
What's Changed
- Update v2 dead link by @abousselmi in https://github.com/urfave/cli/pull/1466
- Fix:(issue_1293) Wrap usage text for commands by @dearchap in https://github.com/urfave/cli/pull/1460
- Add App.InvalidFlagAccessHandler by @icholy in https://github.com/urfave/cli/pull/1446
New Contributors
- @abousselmi made their first contribution in https://github.com/urfave/cli/pull/1466
- @icholy made their first contribution in https://github.com/urfave/cli/pull/1446
Full Changelog: https://github.com/urfave/cli/compare/v2.13.0...v2.14.0
v2.13.0
What's Changed
- Fix:(issue_1094) Dont execute Before/After handlers during shell comp… by @dearchap in https://github.com/urfave/cli/pull/1457
- Fix:(issue_1455) Allow bool flags from input altsrc by @dearchap in https://github.com/urfave/cli/pull/1456
- Add configurable Base to int, uint and uint64 flags by @ccremer in https://github.com/urfave/cli/pull/1464
- fix: allow required flag with one character by @Gerrard-YNWA in https://github.com/urfave/cli/pull/1449
- Add support for alias in YAMLs by @james-prysm in https://github.com/urfave/cli/pull/1448
New Contributors
- @ccremer made their first contribution in https://github.com/urfave/cli/pull/1464
- @Gerrard-YNWA made their first contribution in https://github.com/urfave/cli/pull/1449
- @james-prysm made their first contribution in https://github.com/urfave/cli/pull/1448
Full Changelog: https://github.com/urfave/cli/compare/v2.12.3...v2.13.0
v2.12.3
What's Changed
- issue_62: Make slice options more posix like by @dearchap in https://github.com/urfave/cli/pull/1454
- Move genflags tool to cmd/ and pin to previous release by @meatballhat in https://github.com/urfave/cli/pull/1451
- Shift supported go versions by @meatballhat in https://github.com/urfave/cli/pull/1452
- docs: split documentation into individual pages by @hay-kot in https://github.com/urfave/cli/pull/1453
New Contributors
- @hay-kot made their first contribution in https://github.com/urfave/cli/pull/1453
Full Changelog: https://github.com/urfave/cli/compare/v2.12.1...v2.12.3
v2.12.2
What's Changed
- issue_62: Make slice options more posix like by @dearchap in https://github.com/urfave/cli/pull/1454
- Move genflags tool to cmd/ and pin to previous release by @meatballhat in https://github.com/urfave/cli/pull/1451
- Shift supported go versions by @meatballhat in https://github.com/urfave/cli/pull/1452
- docs: split documentation into individual pages by @hay-kot in https://github.com/urfave/cli/pull/1453
New Contributors
- @hay-kot made their first contribution in https://github.com/urfave/cli/pull/1453
Full Changelog: https://github.com/urfave/cli/compare/v2.12.1...v2.12.2
v2.12.1
Full Changelog: https://github.com/urfave/cli/compare/v2.11.5...v2.12.1
v2.12.0
Full Changelog: https://github.com/urfave/cli/compare/v2.11.2...v2.12.0
v2.11.5
Full Changelog: https://github.com/urfave/cli/compare/v2.11.2...v2.11.5
v2.11.4
Full Changelog: https://github.com/urfave/cli/compare/v2.11.2...v2.11.4
v2.11.3
Full Changelog: https://github.com/urfave/cli/compare/v2.11.2...v2.11.3
v2.11.2
What's Changed
- Fix HideHelp by @Dokiys in https://github.com/urfave/cli/pull/1445
- Fix After not run by @Dokiys in https://github.com/urfave/cli/pull/1444
New Contributors
- @Dokiys made their first contribution in https://github.com/urfave/cli/pull/1445
Full Changelog: https://github.com/urfave/cli/compare/v2.11.1...v2.11.2
v2.11.1
What's Changed
- Fix timestamp flag error when using help by @hmiyado in https://github.com/urfave/cli/pull/1439
New Contributors
- @hmiyado made their first contribution in https://github.com/urfave/cli/pull/1439
Full Changelog: https://github.com/urfave/cli/compare/v2.11.0...v2.11.1
v2.11.0
What's Changed
- feature: add DefaultCommand field to App by @jalavosus in https://github.com/urfave/cli/pull/1388
- accept timezone for timestamps by @julian7 in https://github.com/urfave/cli/pull/1432
- Approve v2 addition of App.DefaultCommand by @meatballhat in https://github.com/urfave/cli/pull/1426
New Contributors
- @jalavosus made their first contribution in https://github.com/urfave/cli/pull/1388
- @julian7 made their first contribution in https://github.com/urfave/cli/pull/1432
Full Changelog: https://github.com/urfave/cli/compare/v2.10.3...v2.11.0
v2.10.3
What's Changed
- Clean up the v2 manual a bit by @meatballhat in https://github.com/urfave/cli/pull/1421
- Fix list formatting in v2 manual by @meatballhat in https://github.com/urfave/cli/pull/1423
Full Changelog: https://github.com/urfave/cli/compare/v2.10.2...v2.10.3
v2.10.2
What's Changed
- Update dependencies to latest by @meatballhat in https://github.com/urfave/cli/pull/1417
- Remove temporary go mod workaround by @meatballhat in https://github.com/urfave/cli/pull/1418
Full Changelog: https://github.com/urfave/cli/compare/v2.10.1...v2.10.2
v2.10.1
What's Changed
- Upgrade gopkg.in/yaml to v3 by @jszwedko in https://github.com/urfave/cli/pull/1415
Full Changelog: https://github.com/urfave/cli/compare/v2.10.0...v2.10.1
v2.10.0
What's Changed
- Add word-wrap support, with wrap length provided by the user by @mostynb in https://github.com/urfave/cli/pull/1119
Full Changelog: https://github.com/urfave/cli/compare/v2.9.0...v2.10.0
v2.9.0
What's Changed
- Fix 'repetetive' typo by @mostynb in https://github.com/urfave/cli/pull/1402
- Add some missing go.sum entries needed with 1.16.x by @meatballhat in https://github.com/urfave/cli/pull/1407
- Add SliceFlag wrapper and fix bugs in existing implementations by @joeycumines in https://github.com/urfave/cli/pull/1409
- Update the v2 docs since merging #1409 by @meatballhat in https://github.com/urfave/cli/pull/1412
New Contributors
- @joeycumines made their first contribution in https://github.com/urfave/cli/pull/1409
Full Changelog: https://github.com/urfave/cli/compare/v2.8.1...v2.9.0
v2.8.1
What's Changed
- Run docs tests against current work tree by @meatballhat in https://github.com/urfave/cli/pull/1403
- Remove GPL2 dependency introduced in v2.7.0 by @AkihiroSuda in https://github.com/urfave/cli/pull/1405
Full Changelog: https://github.com/urfave/cli/compare/v2.8.0...v2.8.1
v2.8.0
What's Changed
- Add flag category support (#796) by @michaeljs1990 / @meatballhat in https://github.com/urfave/cli/pull/1368
- Introduce override hooks for suggestions by @meatballhat in https://github.com/urfave/cli/pull/1396
- Point to the docs tree and site from top-level README by @meatballhat in https://github.com/urfave/cli/pull/1399
Full Changelog: https://github.com/urfave/cli/compare/v2.7.2...v2.8.0
v2.7.2
What's Changed
- Auto-detect zsh via
SHELL
(#1218) by @z0rc / @meatballhat in https://github.com/urfave/cli/pull/1350 - Merging mostynb report source of parse errors by @meatballhat in https://github.com/urfave/cli/pull/1354
- Report the source of a value when we cannot parse it by @mostynb in https://github.com/urfave/cli/pull/1168
- Add a security policy document by @meatballhat in https://github.com/urfave/cli/pull/1365
Full Changelog: https://github.com/urfave/cli/compare/v2.7.1...v2.7.2
v2.7.1
What's Changed
- Docs publishing fixes by @meatballhat in https://github.com/urfave/cli/pull/1400
Full Changelog: https://github.com/urfave/cli/compare/v2.7.0...v2.7.1
v2.7.0
What's Changed
- Generate flag types (again?) by @meatballhat in https://github.com/urfave/cli/pull/1382
- Introduce a v2.x semver approval gate by @meatballhat in https://github.com/urfave/cli/pull/1385
- Generate RequiredFlag and VisibleFlag implementations by @meatballhat in https://github.com/urfave/cli/pull/1393
- Mkdocs setup by @meatballhat in https://github.com/urfave/cli/pull/1392
- Add suggestions support (#977) by @meatballhat in https://github.com/urfave/cli/pull/1390
- Add suggestions support by @saschagrunert in https://github.com/urfave/cli/pull/977
Full Changelog: https://github.com/urfave/cli/compare/v2.6.0...v2.7.0
v2.6.0
What's Changed
- Simplified flag value access by @toaster in https://github.com/urfave/cli/pull/1367
New Contributors
- @toaster made their first contribution in https://github.com/urfave/cli/pull/1367
Full Changelog: https://github.com/urfave/cli/compare/v2.5.1...v2.6.0
v2.5.1
What's Changed
- Cleaning up some release-related metadata & docs by @meatballhat in https://github.com/urfave/cli/pull/1371
- Accept multi-value input on slice flags (#1241) by @meatballhat in https://github.com/urfave/cli/pull/1377
- Accept multi-value input on slice flags by @vipally in https://github.com/urfave/cli/pull/1241
Full Changelog: https://github.com/urfave/cli/compare/v2.5.0...v2.5.1
v2.5.0
What's Changed
- Add
urfave_cli_no_docs
build tag by @kolyshkin in https://github.com/urfave/cli/pull/1375
Full Changelog: https://github.com/urfave/cli/compare/v2.4.10...v2.5.0
v2.4.10
What's Changed
- Exclude hidden sub-command flags from docs by @jolheiser in https://github.com/urfave/cli/pull/1346
Full Changelog: https://github.com/urfave/cli/compare/v2.4.9...v2.4.10
v2.4.9
What's Changed
- Remove some unused code by @53jk1 in https://github.com/urfave/cli/pull/1374
- Do not apply altsrc input values that are not set by @meatballhat in https://github.com/urfave/cli/pull/1376
New Contributors
- @53jk1 made their first contribution in https://github.com/urfave/cli/pull/1374
Full Changelog: https://github.com/urfave/cli/compare/v2.4.8...v2.4.9
v2.4.8
What's Changed
- Allow -ve values for int, float & duration by @dearchap in https://github.com/urfave/cli/pull/1262
Full Changelog: https://github.com/urfave/cli/compare/v2.4.7...v2.4.8
v2.4.7
What's Changed
- Add test case for short option handling by @dearchap in https://github.com/urfave/cli/pull/1260
Full Changelog: https://github.com/urfave/cli/compare/v2.4.6...v2.4.7
v2.4.6
What's Changed
- Unshadow
context
package by @meatballhat in https://github.com/urfave/cli/pull/1370
Full Changelog: https://github.com/urfave/cli/compare/v2.4.5...v2.4.6
v2.4.5
What's Changed
- Pass non-empty string slice to example app
Run
by @meatballhat in https://github.com/urfave/cli/pull/1364 - Revert "Add Stale bot configuration per docs" by @meatballhat in https://github.com/urfave/cli/pull/1366
Full Changelog: https://github.com/urfave/cli/compare/v2.4.4...v2.4.5
v2.4.4
What's Changed
- Remove reflect calls for doc generation (#1259) by @meatballhat in https://github.com/urfave/cli/pull/1361
- Remove reflect calls for doc generation by @dearchap in https://github.com/urfave/cli/pull/1259
Full Changelog: https://github.com/urfave/cli/compare/v2.4.3...v2.4.4
v2.4.3
What's Changed
- show only subcommand flags with bash completion (#1186) by @meatballhat in https://github.com/urfave/cli/pull/1360
- show only subcommand flags with bash completion by @schollz in https://github.com/urfave/cli/pull/1186
New Contributors
- @schollz made their first contribution in https://github.com/urfave/cli/pull/1186
Full Changelog: https://github.com/urfave/cli/compare/v2.4.2...v2.4.3
v2.4.2
What's Changed
- Update dependencies and go.mod spec by @meatballhat in https://github.com/urfave/cli/pull/1359
Full Changelog: https://github.com/urfave/cli/compare/v2.4.1...v2.4.2
v2.4.1
What's Changed
- Bump matrix of supported Go versions by @meatballhat in https://github.com/urfave/cli/pull/1351
- Attempting to soften the barrier to entry by @meatballhat in https://github.com/urfave/cli/pull/1357
- Add Stale bot configuration per docs by @meatballhat in https://github.com/urfave/cli/pull/1352
- Drop references/usage of GO111MODULE by @meatballhat in https://github.com/urfave/cli/pull/1353
- Switch branch references from
master
tomain
by @meatballhat in https://github.com/urfave/cli/pull/1358
Full Changelog: https://github.com/urfave/cli/compare/v2.4.0...v2.4.1
v2.4.0
These release notes were written for the git hash https://github.com/urfave/cli/commit/7b2e60968b20976f8acdf71f7e9b4c07bf853f5c.
Fixed
- Fixed incorrect Help Name in #1202 via @fxrlv
- Fixed a bug where
Context.Value
did not look across all fileSets when looking for a named flag in #1210 via @jcgregorio - Fixed an issue with flags being set by parent context's (
IntSlice
,Int64Slice
) in #1214 via @anicoll - Fixed a bug where
App.Reader
was not correctly propagated to the subcommands in #1225 via @Coderlane - Fixed example code input arguments in #1226 via @Coderlane
- Fixed a bug where default value would changed when parsing slice flags in #1236 via @vipally
- Fixed a bug where slice flag values don't append default values from ENV or a file in #1239 via @vipally
- Fixed indentation on help text in #1279 via @rliebz
- Fixed a Go 1.17 compatibility issue for a test case in #1277 via @GlenPickle
- Fixed a nil pointer panic when getting cli/context flagSet in UsageError function in #1327 via @WUST-mengqinyu
- Fix
strconv.ParseFloat
usage in #1335 via @kolyshkin - Improve handling of file flags in #1336 via @kolyshkin
Changed
- Improve help text for Slice flags in #1208 via @Madhur1997
- Update GitHub actions in #1212 via @jcgregorio
- Fix typo in documentation in #1216 via @wgumenyuk
- Improve Man Page in #1227 via @bobuhiro11
- Remove duplicate comment in #1232 via @corburn
- Improve how UsageText appears when viewing help from subcommands in #1255 via @cpacifying
- Remove reflect calls for Hidden flags feature in #1258 via @dearchap
- Refactor and Cleanup context in #1264 via @dearchap
- Fix grammatical error in documentation in #1281 via @imaskm
- Improve documentation in #1304 via @JayCeeJr
- Improve Man Page in #1311 via @jolheiser
- Improve migration documentation in #1317 via @tlimoncelli
- Improve migration documentation in #1319 via @mritunjaysharma394
- Fixed assertion function in test cases in #1320 via @anthonyfok
- Update markdown library dependency in #3121 via @anthonyfok
- Update yaml library dependency in #1326 via @mildaniel
- Remove useless variable declaration in #1330 via @chenxiao-zhao
- Improve migration documentation in #1340 via @infraredgirl
Added
- Added support for Go 1.15 in #1200 via @asahasrabuddhe
- Add link to pkg.go.dev in manual.md in #1207 via @bbkane
- Add link to GoDoc for v2 in #1228 via @zwass
- Add
Destination
field to theTimeStamp
flag in #1251 via @davidsbond - Add support for Go 1.16 in #1270 via @rliebz
- Add description and usage text in generated documentation in #1287 via @subpop
- Add support for Go 1.17 in #1323 via @rliebz
v2.3.0
These release notes were written for the git hash 09ac54c
.
Fixed
- Fixed a bug 'Unable to load file' in altsrc in #1086 via @akramarenkov
- Fixed a bug where
App.ErrWriter
not being initialized inApp.Setup()
in #1100 via @Nokel81 - Harmonize BeforeError handling in #1117 via @creekorful
- Fixed a bug where the default value is not set in the
Destination
field in theStringSliceFlag
in #1121 via @sgoroshko - Fixed a bug where the version flag was shown unexpectedly on commands with subcommands in #1153 via @lrioth
- Fixed a bug where the default
StringSlice
values would be mutated in #1170 via @tych0 - Fixed a bug where values set by environment var are not saved to existing stringslice reference in #1178 via @alexcb
- Fixed a bug where fish completion did not respect TakesFile on PathFlags in #1198 via @ErinCall
Changed
- Improved ZSH Autocompletion (List files on tab with no completion options) in #1130 via @oleorhagen
- Improved help text rendering in #1175 via @imle
Added
- Added support for Go 1.14 in #1085 via @lynncyrin
- Added support for Powershell autocompletion in #1139 via @kirinnee
- Added support for using
Value
withTimeStamp
flag in #1160 via @vschettino - Added ShowSubcommandHelpAndExit to print help for the given subcommand and exit with exit code in #1183 via @knqyf263
- Expose the constructor of
MapInputSource
type in #1194 via @igorrius - Added support for a
App.Reader
that defaults toos.Stdin
via #1191 via @stellirin
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 https://github.com/urfave/cli/pull/1014 via @lynncyrin
v2.1.0
These release notes were written for the git hash ae84df4cef4a2a6f1a0cb1d41ea0f3af8755e5a8
Fixed
- Fixed some golint errors in https://github.com/urfave/cli/pull/988 via @liamchampton
- Fixed a panic with flag completion https://github.com/urfave/cli/pull/946 via @unRob
Changed
- Changed docs generation to use visible flags in https://github.com/urfave/cli/pull/999 via @subpop
- Changed
App.Run
to use an optional context for timeouts and cancellation in https://github.com/urfave/cli/pull/975 via @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 @asahasrabuddhe
- Changed docs generation to take into account multiple authors in https://github.com/urfave/cli/pull/900 via @saschagrunert
- Changed context to expose a
Value
accessor in https://github.com/urfave/cli/pull/741 via @corruptmemory
Added
- Added timestamp flag in https://github.com/urfave/cli/pull/987 via @drov0
v2.0.0
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
andNewIntSlice
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 theFlag
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
withBool
- and
GlobalInt
withInt
- and
GlobalString
withString
- and so on for any other global flags
- when updating, replace
- Removed
Context.Parent
method, as this is now available viaContext.Lineage
- when updating, replace
Context.Parent()
withContext.Lineage()[1]
- when updating, replace
- Removed the
App.Author
andApp.Email
- these have been replaced with the
Authors []*Author
field
- these have been replaced with the
- Removed the ability to specify multiple entries in the
Command.Name
field- when updating, replace
Name: "a, b, c"
withName: "a", Aliases: []string{"b", "c"}
- when updating, replace
- Removed the
Command.ShortName
field- 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
Action
func signature - Removed
BoolTFlag
and related code, as this is now available viaBoolFlag.Value
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.