2d1634cba6
Merge pull request #1412 from urfave/update-v2-docs
...
Update the v2 docs since merging #1409
2022-06-18 09:49:05 -04:00
3082652ad6
Update the v2 docs since merging #1409
2022-06-18 08:49:43 -04:00
8007c54e1d
Merge pull request #1409 from joeycumines/main
...
Add SliceFlag wrapper and fix bugs in existing implementations
2022-06-18 08:48:03 -04:00
Joseph Cumines
4f795e3870
Fix build for go < 1.18
2022-06-13 08:23:41 +10:00
Joseph Cumines
e77dd7bb68
Add SliceFlag wrapper and fix bugs in existing implementations
...
The SliceFlag implementation and associated aliases (MultiStringFlag, etc)
extend the existing slice implementations (StringSliceFlag, etc) to support
actual slices as the flag value and destination.
This change also fixes various bugs in the existing implementation. Notably,
the StringSliceFlag.Apply implementation would modify the input (default)
Value, if an env var was set, and no destination was provided. The bugs fixed
in the other three implementations were all already fixed in either
StringSliceFlag, or in one case (ignoring empty env var) in Float64SliceFlag.
2022-06-07 08:54:57 +10:00
947f9894ee
Merge pull request #1407 from urfave/missing-go-sums
...
Add some missing go.sum entries needed with 1.16.x
2022-05-24 08:25:35 -04:00
813ab33ba0
Add some missing go.sum entries needed with 1.16.x
2022-05-24 08:18:55 -04:00
12a4c542ec
Merge pull request #1402 from mostynb/fix_typo
...
Fix 'repetetive' typo
2022-05-24 08:11:38 -04:00
5ff4e2ac38
Merge pull request #1405 from AkihiroSuda/remove-gpl2-dependency
...
Remove GPL2 dependency introduced in v2.7.0
2022-05-24 08:07:41 -04:00
Akihiro Suda
3e31c9b44c
CI: workaround for golang.org/x/tools error
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-05-24 15:30:02 +09:00
Akihiro Suda
a14bd76b6b
Remove GPL2 dependency introduced in v2.7.0
...
This commit replaces github.com/antzucaro/matchr (GPL2, introduced in v2.7.0)
with github.com/xrash/smetrics (MIT License).
Fixes issue 1404
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-05-24 15:27:35 +09:00
Mostyn Bramley-Moore
eecfd0046b
Fix 'repetetive' typo
2022-05-23 22:05:31 +02:00
Mostyn Bramley-Moore
4fd56cb22d
Add word-wrap support, with wrap length provided by the user
...
We could try to automatically detect the terminal width and wrap at that
point, but this would increase the binary footprint for all users even
if not using this feature.
Instead, we can allow users to specify their preferred line length limit
(if any), and those who want to bear the cost of checking the terminal
size can do so if they wish. This also makes the feature more testable.
Original patch by Sascha Grunert <sgrunert@suse.com>
2022-05-23 20:42:16 +02:00
595cabc60c
Merge pull request #1403 from urfave/gfmrun-current
...
Run docs tests against current work tree
2022-05-23 07:50:02 -04:00
8f47e6dc97
Set absolute bash
path
...
and slightly revert assertion in docs test to ensure flag ordering
2022-05-23 07:44:58 -04:00
5edc1b95e8
Run docs tests against current work tree
...
by creating a temporary go workspace to be used by gfmrun via `TMPDIR`.
2022-05-22 22:18:00 -04:00
24197006ef
Merge pull request #1399 from urfave/docs-pointer
...
Point to the docs tree and site from top-level README
2022-05-22 11:15:26 -04:00
9de0cd3c4a
Merge pull request #1396 from urfave/suggestion-pluggability
...
Introduce override hooks for suggestions
2022-05-22 11:14:46 -04:00
9e65b4d085
Merge pull request #1368 from urfave/michaeljs1990-add-flag-category-support
...
Add flag category support (#796 )
2022-05-22 11:14:20 -04:00
4bca72cea1
Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support
2022-05-22 11:06:38 -04:00
939ab7f9e7
Merge pull request #1365 from urfave/security-policy-doc
...
Add a security policy document
2022-05-22 09:53:13 -04:00
60a6bf5866
Merge pull request #1354 from urfave/mostynb-report_source_of_parse_errors
...
Merging mostynb report source of parse errors
2022-05-22 09:51:53 -04:00
fc27cb08fc
Merge remote-tracking branch 'origin/main' into mostynb-report_source_of_parse_errors
2022-05-22 09:44:39 -04:00
f528cf0a1e
Merge pull request #1350 from urfave/applying-pr1218
...
Another approach for zsh completion (#1218 )
2022-05-22 09:40:38 -04:00
e66017d73a
Refinements to removal of zsh hack
2022-05-22 09:07:03 -04:00
e66ce91db1
Merge remote-tracking branch 'origin/main' into applying-pr1218
2022-05-22 08:53:47 -04:00
a78717f4f9
Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support
2022-05-19 07:40:56 -04:00
5c1c2ea35d
Merge pull request #1400 from urfave/docs-publish-debugging
...
Docs publishing fixes
2022-05-18 23:23:23 -04:00
b3359c3e27
Re-enable workflow conditions
2022-05-18 23:20:47 -04:00
e7f3925a5a
Use correct yaml multiline 🤦
2022-05-18 23:19:10 -04:00
e592640fdb
Unshallow the clone + toc cleanups
2022-05-18 23:17:57 -04:00
5988cc6040
Try running mkdocs steps directly
2022-05-18 23:13:45 -04:00
70e1ed4c9d
Attempt to work around materialx yaml loader boom
2022-05-18 22:58:46 -04:00
522b7e0d92
Use existing secret name in docs publish step
2022-05-18 22:46:36 -04:00
660d25f14d
Un-delete non-redundant docs
2022-05-18 22:37:44 -04:00
4536c8742d
Point to the docs tree and site from top-level README
2022-05-18 22:34:28 -04:00
061250ade5
Use correctly spelled repo name in mkdocs config
2022-05-18 22:30:07 -04:00
5bb9f453dc
Also make the did-you-mean template pluggable
2022-05-17 09:24:17 -04:00
68bd4903fd
Introduce override hooks for suggestions
...
Related to https://github.com/urfave/cli/pull/1390#discussion_r871398659
2022-05-17 09:02:17 -04:00
e770ee9794
Merge pull request #1390 from urfave/saschagrunert-suggestions
...
Add suggestions support (#977 )
2022-05-17 08:59:47 -04:00
f3cf7640c7
Backing out build tag for suggestions per recommendation
...
from @kolyshkin 🙇
2022-05-17 08:49:15 -04:00
3c923e7a44
Merge remote-tracking branch 'origin/main' into saschagrunert-suggestions
2022-05-17 08:45:13 -04:00
97a222b471
Merge pull request #1392 from urfave/mkdocs-setup
...
Mkdocs setup
2022-05-17 08:43:36 -04:00
3f5007dc76
Merge remote-tracking branch 'origin/main' into mkdocs-setup
2022-05-08 21:59:51 -04:00
c468566272
Touching up more mkdocs details
2022-05-08 20:49:08 -04:00
c11460548d
Merge pull request #1393 from urfave/generate-req-viz
...
Generate RequiredFlag and VisibleFlag implementations
2022-05-08 20:21:34 -04:00
bc9ad9fede
Generate RequiredFlag and VisibleFlag implementations
2022-05-08 13:52:32 -04:00
8da1afc62b
Un-rename manual docs + symlink instead
2022-05-08 11:38:41 -04:00
858ce7ee6d
Initial mkdocs setup
...
Connected to #1343
2022-05-08 11:36:03 -04:00
9bd6349ed2
Add example app for suggestion in command
...
and further reduce example output diff potential
2022-05-07 23:06:43 -04:00