Merge branch 'master' into lynncyrin-patch-8
This commit is contained in:
@@ -6,6 +6,33 @@
|
||||
|
||||
View [unreleased 2.X] series changes.
|
||||
|
||||
## [2.1.1] - 2019-12-24
|
||||
|
||||
### Fixed
|
||||
|
||||
* Fixed a `Context` regression introduced in `v2.1.0` in [urfave/cli/pull/1014](https://github.com/urfave/cli/pull/1014) via [@lynncyrin](https://github.com/lynncyrin)
|
||||
|
||||
## [2.1.0] - 2019-12-24
|
||||
|
||||
These release notes were written for the git hash [ae84df4cef4a2a6f1a0cb1d41ea0f3af8755e5a8](https://github.com/urfave/cli/tree/ae84df4cef4a2a6f1a0cb1d41ea0f3af8755e5a8)
|
||||
|
||||
### Fixed
|
||||
|
||||
* Fixed some golint errors in [urfave/cli/pull/988](https://github.com/urfave/cli/pull/988) via [@liamchampton](https://github.com/liamchampton)
|
||||
* Fixed a panic with flag completion [urfave/cli/pull/946](https://github.com/urfave/cli/pull/946) via [@unRob](https://github.com/unRob)
|
||||
|
||||
### Changed
|
||||
|
||||
* Changed docs generation to use visible flags in [urfave/cli/pull/999](https://github.com/urfave/cli/pull/999) via [@subpop](https://github.com/subpop)
|
||||
* Changed `App.Run` to use an optional context for timeouts and cancellation in [urfave/cli/pull/975](https://github.com/urfave/cli/pull/975) via [@marwan-at-work](https://github.com/marwan-at-work)
|
||||
* Changed version info to be hidden if the user has not defined a version in [urfave/cli/pull/955](https://github.com/urfave/cli/pull/955) via [@asahasrabuddhe](https://github.com/asahasrabuddhe)
|
||||
* Changed docs generation to take into account multiple authors in [urfave/cli/pull/900](https://github.com/urfave/cli/pull/900) via [@saschagrunert](https://github.com/saschagrunert)
|
||||
* Changed context to expose a `Value` accessor in [urfave/cli/pull/741](https://github.com/urfave/cli/pull/741) via [@corruptmemory](https://github.com/corruptmemory)
|
||||
|
||||
### Added
|
||||
|
||||
* Added timestamp flag in [urfave/cli/pull/987](https://github.com/urfave/cli/pull/987) via [@drov0](https://github.com/drov0)
|
||||
|
||||
## [2.0.0] - 2019-11-17
|
||||
|
||||
The V2 changes were all shipped in [urfave/cli/pull/892](https://github.com/urfave/cli/pull/892), which was created with the effort of over a dozen participants! They are:
|
||||
@@ -520,7 +547,9 @@ signature of `func(*cli.Context) error`, as defined by `cli.ActionFunc`.
|
||||
### Added
|
||||
- Initial implementation.
|
||||
|
||||
[unreleased 2.X]: https://github.com/urfave/cli/compare/v2.0.0...HEAD
|
||||
[unreleased 2.X]: https://github.com/urfave/cli/compare/v2.1.1...HEAD
|
||||
[2.1.1]: https://github.com/urfave/cli/compare/v2.1.0...v2.1.1
|
||||
[2.1.0]: https://github.com/urfave/cli/compare/v2.0.0...v2.1.0
|
||||
[2.0.0]: https://github.com/urfave/cli/compare/v1.22.2...v2.0.0
|
||||
|
||||
[unreleased 1.22.X]: https://github.com/urfave/cli/compare/v1.22.2...v1
|
||||
|
@@ -1460,13 +1460,15 @@ func main() {
|
||||
cli.ShowVersion(c)
|
||||
|
||||
fmt.Printf("%#v\n", c.App.Command("doo"))
|
||||
if c.Bool("infinite") {
|
||||
c.App.Run([]string{"app", "doo", "wop"})
|
||||
}
|
||||
// // uncomment when https://github.com/urfave/cli/pull/1014 is released
|
||||
// if c.Bool("infinite") {
|
||||
// c.App.Run([]string{"app", "doo", "wop"})
|
||||
// }
|
||||
|
||||
if c.Bool("forevar") {
|
||||
c.App.RunAsSubcommand(c)
|
||||
}
|
||||
// // uncomment when https://github.com/urfave/cli/pull/1014 is released
|
||||
// if c.Bool("forevar") {
|
||||
// c.App.RunAsSubcommand(c)
|
||||
// }
|
||||
c.App.Setup()
|
||||
fmt.Printf("%#v\n", c.App.VisibleCategories())
|
||||
fmt.Printf("%#v\n", c.App.VisibleCommands())
|
||||
@@ -1482,28 +1484,29 @@ func main() {
|
||||
set := flag.NewFlagSet("contrive", 0)
|
||||
nc := cli.NewContext(c.App, set, c)
|
||||
|
||||
fmt.Printf("%#v\n", nc.Args())
|
||||
fmt.Printf("%#v\n", nc.Bool("nope"))
|
||||
fmt.Printf("%#v\n", !nc.Bool("nerp"))
|
||||
fmt.Printf("%#v\n", nc.Duration("howlong"))
|
||||
fmt.Printf("%#v\n", nc.Float64("hay"))
|
||||
fmt.Printf("%#v\n", nc.Generic("bloop"))
|
||||
fmt.Printf("%#v\n", nc.Int64("bonk"))
|
||||
fmt.Printf("%#v\n", nc.Int64Slice("burnks"))
|
||||
fmt.Printf("%#v\n", nc.Int("bips"))
|
||||
fmt.Printf("%#v\n", nc.IntSlice("blups"))
|
||||
fmt.Printf("%#v\n", nc.String("snurt"))
|
||||
fmt.Printf("%#v\n", nc.StringSlice("snurkles"))
|
||||
fmt.Printf("%#v\n", nc.Uint("flub"))
|
||||
fmt.Printf("%#v\n", nc.Uint64("florb"))
|
||||
|
||||
fmt.Printf("%#v\n", nc.FlagNames())
|
||||
fmt.Printf("%#v\n", nc.IsSet("wat"))
|
||||
fmt.Printf("%#v\n", nc.Set("wat", "nope"))
|
||||
fmt.Printf("%#v\n", nc.NArg())
|
||||
fmt.Printf("%#v\n", nc.NumFlags())
|
||||
fmt.Printf("%#v\n", nc.Lineage()[1])
|
||||
// // uncomment when https://github.com/urfave/cli/pull/1014 is released
|
||||
// fmt.Printf("%#v\n", nc.Args())
|
||||
// fmt.Printf("%#v\n", nc.Bool("nope"))
|
||||
// fmt.Printf("%#v\n", !nc.Bool("nerp"))
|
||||
// fmt.Printf("%#v\n", nc.Duration("howlong"))
|
||||
// fmt.Printf("%#v\n", nc.Float64("hay"))
|
||||
// fmt.Printf("%#v\n", nc.Generic("bloop"))
|
||||
// fmt.Printf("%#v\n", nc.Int64("bonk"))
|
||||
// fmt.Printf("%#v\n", nc.Int64Slice("burnks"))
|
||||
// fmt.Printf("%#v\n", nc.Int("bips"))
|
||||
// fmt.Printf("%#v\n", nc.IntSlice("blups"))
|
||||
// fmt.Printf("%#v\n", nc.String("snurt"))
|
||||
// fmt.Printf("%#v\n", nc.StringSlice("snurkles"))
|
||||
// fmt.Printf("%#v\n", nc.Uint("flub"))
|
||||
// fmt.Printf("%#v\n", nc.Uint64("florb"))
|
||||
|
||||
// // uncomment when https://github.com/urfave/cli/pull/1014 is released
|
||||
// fmt.Printf("%#v\n", nc.FlagNames())
|
||||
// fmt.Printf("%#v\n", nc.IsSet("wat"))
|
||||
// fmt.Printf("%#v\n", nc.Set("wat", "nope"))
|
||||
// fmt.Printf("%#v\n", nc.NArg())
|
||||
// fmt.Printf("%#v\n", nc.NumFlags())
|
||||
// fmt.Printf("%#v\n", nc.Lineage()[1])
|
||||
nc.Set("wat", "also-nope")
|
||||
|
||||
ec := cli.Exit("ohwell", 86)
|
||||
|
Reference in New Issue
Block a user