77fb75adf7
Merge pull request #1375 from kolyshkin/no-docs
...
Add `urfave_cli_no_docs` build tag
2022-04-25 23:13:25 -04:00
e20d3d4d0f
Merge branch 'main' into no-docs
2022-04-25 23:09:17 -04:00
924052a2f3
Merge pull request #1346 from jolheiser/hidden-flag
...
Exclude hidden sub-command flags from docs
2022-04-25 23:05:43 -04:00
e275e95e2c
Merge pull request #1376 from urfave/duration-default-regression
...
Do not apply altsrc input values that are not set
2022-04-25 22:30:13 -04:00
cdb1730b7d
Drop extra if condition
2022-04-25 22:21:46 -04:00
8fe4d792d1
Merge branch 'main' into duration-default-regression
2022-04-25 22:20:14 -04:00
ac641ffda5
Add more test coverage around unset input source applying
2022-04-25 22:15:39 -04:00
dbeef68cbf
Merge pull request #1374 from 53jk1/main
...
Remove some unused code
2022-04-25 21:42:13 -04:00
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
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
59ec2a1d5a
Merge pull request #1262 from dearchap/issue_1199
...
Allow -ve values for int, float & duration
2022-04-24 13:14:41 -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
c864c2425e
Merge pull request #1260 from dearchap/issue_1254
...
Add test case for short option handling
2022-04-24 08:25:02 -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
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
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
79ed8b5263
Drop desired min binary size accordingly
2022-04-21 20:35:22 -04:00
d83bb8d85e
Merge branch 'main' into remove_reflect
2022-04-21 20:22:26 -04:00
372ee0a551
Merge pull request #1360 from urfave/schollz-master
...
show only subcommand flags with bash completion (#1186 )
2022-04-21 20:15:12 -04:00
c4c15e1453
Writing tests around changes from #1186
2022-04-21 20:07:06 -04:00
7a231c5eb1
Merge branch 'main' into master
2022-04-21 19:31:22 -04:00
2e3b8fc06b
Merge pull request #1359 from urfave/deps-updates
...
Update dependencies and go.mod spec
2022-04-21 19:21:40 -04:00
6effd9fba8
Update dependencies and go.mod spec
...
Closes #1322
2022-04-21 19:11:01 -04:00
9e59db8b32
Merge pull request #1358 from urfave/trunk-is-main
...
Switch branch references from `master` to `main`
2022-04-21 17:55:02 -04:00
7c50be3d7c
Switch branch references from master
to main
...
Connected to #1349
2022-04-21 16:14:27 -04:00
850cf82509
Merge pull request #1353 from urfave/drop-go111module
...
Drop references/usage of GO111MODULE
2022-04-21 16:10:13 -04:00
22366116c3
Merge branch 'master' into drop-go111module
2022-04-21 16:02:17 -04:00
7f0e884542
Merge pull request #1352 from urfave/stalebot-config
...
Add Stale bot configuration per docs
2022-04-21 16:01:15 -04:00
2e81fd08e4
Merge pull request #1357 from urfave/be-ye-disabling-of-yon-shield
...
Attempting to soften the barrier to entry
2022-04-21 16:00:23 -04:00
16a163bbb2
Bump matrix of supported Go versions ( #1351 )
...
* Bump matrix of supported Go versions
to test on the latest release (^1.18) and drop testing/supporting ^1.15.
* Switch to gfmrun v1.3.0
* Use `go env` correctly
* Add missing `"fmt"` import in example
* Use correct go version strings; other general CI updates
* Drop extra backslashes in continous command
2022-04-21 15:32:32 -04:00
64aad19eb5
Drop extra backslashes in continous command
2022-04-21 15:24:14 -04:00
902f5abbc8
Use correct go version strings; other general CI updates
2022-04-21 15:18:35 -04:00
e63054a42e
Attempting to soften the barrier to entry
...
and also removing issue title formatting that overlaps with label
functionality
2022-04-21 15:07:45 -04:00
5c6ccfb097
Add missing "fmt"
import in example
2022-04-20 14:45:04 -04:00
8c33a078d1
Use go env
correctly
2022-04-20 14:41:26 -04:00
17aa508d22
Switch to gfmrun v1.3.0
2022-04-20 14:38:32 -04:00
d7bc33018b
Drop references/usage of GO111MODULE
2022-04-19 16:57:25 -04:00