cli
cli copied to clipboard
A simple, fast, and fun package for building command line apps in Go
The current version of the page https://cli.urfave.org/v2/getting-started/ reads "Let's give an action". But https://github.com/urfave/cli/edit/main/docs/v2/getting-started.md says "Let's add an action". CI shows that Pages upload job is runs successfully https://github.com/urfave/cli/actions/workflows/pages/pages-build-deployment Why...
## What type of PR is this? _(REQUIRED)_ - bug - cleanup - documentation - feature ## What this PR does / why we need it: _(REQUIRED)_ ## Which issue(s)...
Some of the fields on `Command` are related and may be grouped together for clarity. For example, these `Help.+` fields could be grouped together under a `Help` field: - `HideHelp`...
- [x] #1586 - [x] #1600 - [x] #1587 - [x] #1759 - [x] #1780 - [ ] #1791
This likely overlaps with the goal described in #1774, but this issue is intended to track a lower-level list of specific types. Each of these types must have tests in...
One of the strongest differentiators of this library is (arguably! (I'm arguing)) how _declarative_ it is. Ensuring the primary usage of the library is via struct literals will support this...
Hi, As far as I understand, `cli` expect the root/global flags to be provided between the binary name and the subcommand name, and the command flags to be provided at...
tl;dr - By switching away from stdlib `flag`, we will be able to support a wider range of capabilities with significantly less workaround code. Much of the code around here...
The stdlib error wrapping capability via `fmt` + `%w` allows for error wrapping as defined in the Go 2 error wrapping spec (citation needed) and as understood by [the third-party...
When `OnUsageError` is set for a `cli.App` instance, one has full control of what is printed to stderr when an error is encountered. That is not the case when setting...