Balazs Nagy
1335a7022a
accept timezone for timestamps
2 years ago
Dan Buch
d7504f847b
Approve v2 addition of App.DefaultCommand
...
related to #1388
2 years ago
Dan Buch
d29120f08b
Merge pull request #1388 from jalavosus/feature/default-command
...
feature: add DefaultCommand field to App
2 years ago
Dan Buch
e2a844fcee
Merge pull request #1423 from urfave/docs-list-fix
...
Fix list formatting in v2 manual
2 years ago
Dan Buch
6dd82af86b
Fix list formatting in v2 manual
2 years ago
Dan Buch
7d21dda232
Merge pull request #1421 from urfave/docs-cleanups
...
Clean up the v2 manual a bit
2 years ago
James Alavosus
d8c93f867b
app_test.go: add tests for default command + flag
2 years ago
James Alavosus
1dfa9827f6
gofmt
2 years ago
James Alavosus
1b3da50f16
Add test cases for subcommands of default command
2 years ago
James Alavosus
77feee843d
Implement slightly wonky setup for checking against ...
...
subcommand names of a default command (should it be set)
2 years ago
James Alavosus
32dec1ddaa
feature: add DefaultCommand field to App
...
See issue #1307 for context.
2 years ago
Dan Buch
58ccb0bf28
Clean up the v2 manual a bit
...
includes:
- running each example through `goimports`
- wrapping text at ~80 cols
- consistently using `&cli.App{...}`
- consistently using code example gates
- removing trailing blankspace
2 years ago
Dan Buch
f1fc873f1f
Merge pull request #1418 from urfave/un-workaround
...
Remove temporary go mod workaround
2 years ago
Dan Buch
9f56fe7088
Remove temporary go mod workaround
2 years ago
Dan Buch
f71d1cb6d2
Merge pull request #1417 from urfave/deps-bump
...
Update dependencies to latest
2 years ago
Dan Buch
59ce32aad4
Update dependencies to latest
2 years ago
Dan Buch
1362627dd7
Approve usage wrapping docs changes
2 years ago
Dan Buch
b927c6ad2f
Merge pull request #1415 from urfave/upgrade-go-yaml
...
Upgrade gopkg.in/yaml to v3
2 years ago
Jesse Szwedko
72dc91db74
Re-use `node` variable
...
Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
2 years ago
Jesse Szwedko
ee0756044c
Upgrade gopkg.in/yaml to v3
...
Fixes vulnerability: https://github.com/advisories/GHSA-hp87-p4gw-j4gq
YAML v3 deserializes maps as map[string]interface{} so we handle this in
MapImportSource now.
Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
2 years ago
Dan Buch
e576ba4022
Merge pull request #1119 from mostynb/word_wrap_v2
...
Add word-wrap support, with wrap length provided by the user
2 years ago
Dan Buch
2d1634cba6
Merge pull request #1412 from urfave/update-v2-docs
...
Update the v2 docs since merging #1409
2 years ago
Dan Buch
3082652ad6
Update the v2 docs since merging #1409
2 years ago
Dan Buch
8007c54e1d
Merge pull request #1409 from joeycumines/main
...
Add SliceFlag wrapper and fix bugs in existing implementations
2 years ago
Joseph Cumines
4f795e3870
Fix build for go < 1.18
2 years ago
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.
2 years ago
Dan Buch
947f9894ee
Merge pull request #1407 from urfave/missing-go-sums
...
Add some missing go.sum entries needed with 1.16.x
2 years ago
Dan Buch
813ab33ba0
Add some missing go.sum entries needed with 1.16.x
2 years ago
Dan Buch
12a4c542ec
Merge pull request #1402 from mostynb/fix_typo
...
Fix 'repetetive' typo
2 years ago
Dan Buch
5ff4e2ac38
Merge pull request #1405 from AkihiroSuda/remove-gpl2-dependency
...
Remove GPL2 dependency introduced in v2.7.0
2 years ago
Akihiro Suda
3e31c9b44c
CI: workaround for golang.org/x/tools error
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2 years ago
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>
2 years ago
Mostyn Bramley-Moore
eecfd0046b
Fix 'repetetive' typo
2 years ago
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>
2 years ago
Dan Buch
595cabc60c
Merge pull request #1403 from urfave/gfmrun-current
...
Run docs tests against current work tree
2 years ago
Dan Buch
8f47e6dc97
Set absolute `bash` path
...
and slightly revert assertion in docs test to ensure flag ordering
2 years ago
Dan Buch
5edc1b95e8
Run docs tests against current work tree
...
by creating a temporary go workspace to be used by gfmrun via `TMPDIR`.
2 years ago
Dan Buch
24197006ef
Merge pull request #1399 from urfave/docs-pointer
...
Point to the docs tree and site from top-level README
2 years ago
Dan Buch
9de0cd3c4a
Merge pull request #1396 from urfave/suggestion-pluggability
...
Introduce override hooks for suggestions
2 years ago
Dan Buch
9e65b4d085
Merge pull request #1368 from urfave/michaeljs1990-add-flag-category-support
...
Add flag category support (#796 )
2 years ago
Dan Buch
4bca72cea1
Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support
2 years ago
Dan Buch
939ab7f9e7
Merge pull request #1365 from urfave/security-policy-doc
...
Add a security policy document
2 years ago
Dan Buch
60a6bf5866
Merge pull request #1354 from urfave/mostynb-report_source_of_parse_errors
...
Merging mostynb report source of parse errors
2 years ago
Dan Buch
fc27cb08fc
Merge remote-tracking branch 'origin/main' into mostynb-report_source_of_parse_errors
2 years ago
Dan Buch
f528cf0a1e
Merge pull request #1350 from urfave/applying-pr1218
...
Another approach for zsh completion (#1218 )
2 years ago
Dan Buch
e66017d73a
Refinements to removal of zsh hack
2 years ago
Dan Buch
e66ce91db1
Merge remote-tracking branch 'origin/main' into applying-pr1218
2 years ago
Dan Buch
a78717f4f9
Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support
2 years ago
Dan Buch
5c1c2ea35d
Merge pull request #1400 from urfave/docs-publish-debugging
...
Docs publishing fixes
2 years ago
Dan Buch
b3359c3e27
Re-enable workflow conditions
2 years ago