Commit Graph

1855 Commits

Author SHA1 Message Date
Tom Limoncelli
710df05119 Add a v1 => v2 migration guide 2020-03-29 11:02:05 -04:00
Robert Liebowitz
dd51d24ce6 Merge pull request #1091 from rliebz/document-exit-errors
Update docs and tests around cli.Exit
2020-03-25 17:52:14 -04:00
Robert Liebowitz
959cf9de8a Update docs and tests around cli.Exit
Some of the docs were lacking or incomplete concerning how to properly
use cli.Exit, cli.HandleExitCoder, and the ExitErrHandler field on cli.App.
This change aims to clarify the usage of those pieces.

I also noticed that we have two identical functions now: cli.Exit and
cli.NewExitError. Since the latter seems to be more recent and less well
documented, I went ahead and marked it as deprecated so that we can keep
our public interface small.

Also added a missing test case for behavior that's been around a while
but was not documented or tested.

Related: #1089
2020-03-24 20:32:39 -04:00
lynn [they]
1c4bb12e86 Merge pull request #1087 from l1905/master
fix typo in v2 manual.md demo code
2020-03-18 09:31:05 -07:00
litongxue
f7ef1e38d6 fix typo in v2 manual.md demo code 2020-03-18 14:32:57 +08:00
lynn [they]
120c9eead1 Merge pull request #1084 from urfave/lynncyrin-patch-1
Release 2.2.0
2020-03-10 12:44:57 -07:00
lynn [they]
b4bc58ed8a Merge pull request #1085 from urfave/lynncyrin-patch-2
go 1.14
2020-03-10 11:08:54 -07:00
lynn [they]
526f019335 Update CHANGELOG.md 2020-03-09 01:37:39 -07:00
lynn [they]
2604b5e82d Update CHANGELOG.md 2020-03-09 01:35:19 -07:00
lynn [they]
f4ec4f67b3 Update README.md 2020-03-09 01:14:51 -07:00
lynn [they]
d7919f0fdd Update README.md 2020-03-09 01:13:18 -07:00
lynn [they]
97faf22319 Update cli.yml 2020-03-09 01:05:04 -07:00
lynn [they]
ff1566ff2b Update CHANGELOG.md 2020-03-08 03:58:52 -07:00
Robert Liebowitz
d648edd48d Merge pull request #1083 from AkihiroSuda/hide-help-command
Add HideHelpCommand
2020-03-06 07:46:02 -05:00
Akihiro Suda
75e7c526bd Add HideHelpCommand
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand`
only hides `help` command and leave `--help` flag as-is.

The behavior of `HideHelp` is untouched in this commit.

Fix #523
Replace #636

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-03-06 16:17:24 +09:00
Robert Liebowitz
3cc9946b2a Merge pull request #1080 from saschagrunert/refactor-flag-default
Refactor '(default: …)' flag string into utility function
2020-03-05 08:19:39 -05:00
lynn [they]
1b7e4e00c7 Merge pull request #1079 from urfave/binary-size
Add binary size bounds checking
2020-03-02 12:01:17 -08:00
Sascha Grunert
7742363500 Refactor '(default: …)' flag string into utility function
The usage of the `(default: …)` strings are a bit error prone so we now
refactor them into a dedicated helper function.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-03-02 13:05:45 +01:00
Lynn
a8a1ef04ee move bounds 2020-02-29 14:04:21 -08:00
Lynn
bb4ec3bda2 docs 2020-02-29 14:03:02 -08:00
Lynn
1d4b01a6fc move bounds 2020-02-29 14:02:03 -08:00
Lynn
3558c7f30c add diffing 2020-02-29 14:00:26 -08:00
Lynn
a0932dafcb move bounds 2020-02-29 13:41:43 -08:00
Lynn
741984cad4 move bounds 2020-02-29 13:37:06 -08:00
Lynn
a25f82805f fix linker flags 2020-02-29 13:35:43 -08:00
lynn [they]
6ffee22f36 add linker flags 2020-02-29 13:26:25 -08:00
lynn [they]
d206020179 Update internal/build/build.go
Co-Authored-By: Sascha Grunert <sgrunert@suse.com>
2020-02-29 13:21:31 -08:00
lynn [they]
573004ad6a Merge pull request #1078 from davidsbond/stringslice-destination
Allow specifying a StringSlice destination for StringSliceFlag
2020-02-29 01:15:17 -08:00
Lynn
6594da85f6 max guidance 2020-02-29 00:47:10 -08:00
Lynn
b1977c242d clarify MB 2020-02-29 00:39:47 -08:00
Lynn
0ec96bc064 decrease min 2020-02-29 00:35:46 -08:00
Lynn
055c9c076d big guidance 2020-02-29 00:33:51 -08:00
Lynn
365dd2b4cb test ci 2020-02-29 00:25:44 -08:00
Lynn
3a7e251d48 add min maxing 2020-02-29 00:25:00 -08:00
Lynn
2571506b8d docs 2020-02-28 23:59:11 -08:00
Lynn
7bdc44fa18 docs 2020-02-28 23:58:29 -08:00
Lynn
e7e165ef1b cleanup rounding 2020-02-28 23:56:57 -08:00
Lynn
75089f4a6c show size in mb 2020-02-28 23:51:42 -08:00
Lynn
45f2a862ff ci readability 2020-02-28 23:36:34 -08:00
Lynn
d6dfe3eb9b smaller example 2020-02-28 23:30:17 -08:00
Lynn
3b30b5c422 show file size 2020-02-28 23:29:27 -08:00
Lynn
da34a22eef docs 2020-02-28 23:20:46 -08:00
Lynn
863b4a58fe binary size checking hooks 2020-02-28 23:19:43 -08:00
Lynn
af5ec51a36 add example file 2020-02-28 23:12:46 -08:00
Lynn
1493c542fb reset to master 2020-02-28 23:07:26 -08:00
Lynn
4a785e9f9c WIP binary size work 2020-02-28 23:06:39 -08:00
davidsbond
e19b1565a8 Allow specifying a StringSlice destination for StringSliceFlag 2020-02-28 12:00:31 +00:00
lynn [they]
46c380b962 Merge pull request #1077 from urfave/lynncyrin-patch-1
Release 1.22.3 notes
2020-02-26 17:05:45 -08:00
lynn [they]
ee73e2737f Update CHANGELOG.md 2020-02-25 22:03:39 -08:00
Robert Liebowitz
d04c0883fc Merge pull request #1062 from zhsj/fix-zsh
Fix zsh completion scripts
2020-02-11 06:41:51 -05:00