Commit Graph

2353 Commits

Author SHA1 Message Date
fe1468cc86 Make the altsrc input source context isSet method private
so that it doesn't extend the public surface area, instead focusing on
being a bugfix _only_.
2022-04-25 20:49:31 -04:00
efe04493fc Only apply altsrc input source values when set
Closes #1373
2022-04-25 20:43:43 -04:00
b42bf698a1 Add note about looming EOL of v1 2022-04-25 20:24:10 -04:00
e3aa8d3246 Add failing test for #1373 2022-04-25 20:16:01 -04:00
Kir Kolyshkin
b8cb475418 ci: test newly added tag
We run test with the tag set (to make sure nothing is broken),
and also the check-binary-size target (for informational purposes only).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-04-25 10:58:31 -07:00
Kir Kolyshkin
49e43beba3 Add urfave_cli_no_docs build tag
This removes the resulting binary dependency on cpuguy83/md2man and
russross/blackfriday, which saves more than 400 KB (more than 300 KB
once stripped) from the resulting binary.

Document this in README.
2022-04-25 10:16:31 -07:00
Kacper Bąk
4c7b46cb24 fix: clean code 2022-04-25 19:11:11 +02:00
Kir Kolyshkin
aabfea87c8 Move some test helpers from docs_test to fish_test
This is in preparation to make docs optional.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-04-25 10:04:40 -07:00
Tilo Prütz
835bd32714 rename flags’ ValueFromContext() to Get() 2022-04-25 07:59:10 +02:00
b58a588b89 Merge branch 'main' into release-metadata 2022-04-24 13:17:15 -04:00
59ec2a1d5a Merge pull request #1262 from dearchap/issue_1199
Allow -ve values for int, float & duration
2022-04-24 13:14:41 -04:00
f6c020fa09 Spelling fixes thanks to @asmaloney 🙇 2022-04-24 12:59:12 -04:00
Naveen Gogineni
d198aed170 Add test when flag is not set 2022-04-24 12:06:28 -04:00
Naveen Gogineni
7f37d1d13c Fix(1199). Allow -ve values for int, float & duration 2022-04-24 11:52:40 -04:00
11b3a30b4a Add a new document specifically for releasing 2022-04-24 09:17:59 -04:00
68da1cd6bc Merge remote-tracking branch 'origin/main' into release-metadata 2022-04-24 08:27:02 -04:00
c864c2425e Merge pull request #1260 from dearchap/issue_1254
Add test case for short option handling
2022-04-24 08:25:02 -04:00
de589511d8 Nit updates to changelog admonition 2022-04-24 08:14:05 -04:00
f1ce5c74b0 Cleaning up some release-related metadata 2022-04-24 08:10:33 -04:00
801780fcc1 Merge pull request #1370 from urfave/unshadow-context
Unshadow `context` package
2022-04-24 07:56:00 -04:00
9ce946162f Unshadow context package
and consistently name `*cli.Context` vars and method receivers `cCtx`
2022-04-23 22:07:16 -04:00
Naveen Gogineni
8c5f1fb359 Changes from code review 2022-04-23 19:30:34 -04:00
Naveen Gogineni
dd7065671f Rebase from master 2022-04-23 19:26:24 -04:00
Naveen Gogineni
156d47e696 Fix: (issue#1254) short options handling needs to proceed from last terminated error 2022-04-23 19:26:24 -04:00
e4580f0c50 Extend flag categorization to top-level (global) flags 2022-04-22 15:44:59 -04:00
75e4ee69e9 Porting remainder of #796 2022-04-22 15:01:40 -04:00
44958693a1 Merge branch 'add-flag-category-support' of ssh://github.com/michaeljs1990/cli into michaeljs1990-add-flag-category-support 2022-04-22 13:56:03 -04:00
Tilo Prütz
ca7f26ecb0 Uint64Flag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
1f621059d3 UintFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
889c7b5d7a TimestampFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
6b336c478f StringSliceFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
ce4d9279c4 StringFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
660184dd92 PathFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
6d7f859008 IntSliceFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
dcc47855b8 Int64SliceFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
18b44dfb29 Int64Flag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
bf18c00347 IntFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
8bd5fb2390 GenericFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
2f92fc644c Float64SliceFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
5047beb001 Float64Flag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
9eae255aac DurationFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
Tilo Prütz
baf8ae98de BoolFlag.ValueFromContext() as convenient accessor 2022-04-22 17:11:43 +02:00
849e7f0ec9 Merge branch 'main' into security-policy-doc 2022-04-22 10:56:41 -04:00
6033c008f2 Merge pull request #1366 from urfave/revert-1352-stalebot-config
Revert "Add Stale bot configuration per docs"
2022-04-22 10:56:21 -04:00
b7ee8fff31 Revert "Add Stale bot configuration per docs" 2022-04-22 10:49:09 -04:00
de39f0132b Merge remote-tracking branch 'origin/main' into security-policy-doc 2022-04-22 10:43:17 -04:00
f1d0b0ef43 Add a security policy document
Closes #1342
2022-04-22 08:19:29 -04:00
3b6436c36d Pass non-empty string slice to example app Run (#1364)
so that it does not panic when run.
2022-04-22 06:35:07 -04:00
f04607a18b Merge pull request #1361 from urfave/dearchap-remove_reflect
Remove reflect calls for doc generation (#1259)
2022-04-21 23:07:28 -04:00
9fd3cc92ad Add tests around flag stringifying for all modified types 2022-04-21 23:02:44 -04:00