Go to file
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
.github Re-enable workflow conditions 2022-05-18 23:20:47 -04:00
altsrc Drop extra if condition 2022-04-25 22:21:46 -04:00
autocomplete Refinements to removal of zsh hack 2022-05-22 09:07:03 -04:00
docs Set absolute bash path 2022-05-23 07:44:58 -04:00
internal Set absolute bash path 2022-05-23 07:44:58 -04:00
testdata Merge pull request #1396 from urfave/suggestion-pluggability 2022-05-22 11:14:46 -04:00
.flake8 Allow slightly longer lines in Python scripts 2017-02-14 21:17:32 -08:00
.gitignore Touching up more mkdocs details 2022-05-08 20:49:08 -04:00
app_test.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
app.go Merge pull request #1396 from urfave/suggestion-pluggability 2022-05-22 11:14:46 -04:00
args.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
category.go Some changes per feedback in #1368 2022-05-06 22:23:17 -04:00
cli.go Generate flag types (again?) 2022-05-01 23:02:05 -04:00
CODE_OF_CONDUCT.md Use google group email addresses 2022-05-07 09:30:42 -04:00
command_test.go Unshadow context package 2022-04-23 22:07:16 -04:00
command.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-19 07:40:56 -04:00
context_test.go fix: Nil pointer when getting context's flagSet(#1325) (#1327) 2022-01-16 19:22:57 -05:00
context.go Unshadow context package 2022-04-23 22:07:16 -04:00
docs_test.go Backing out build tag for suggestions per recommendation 2022-05-17 08:49:15 -04:00
docs.go Backing out build tag for suggestions per recommendation 2022-05-17 08:49:15 -04:00
errors_test.go Update docs and tests around cli.Exit 2020-03-24 20:32:39 -04:00
errors.go Cleanup context.go 2021-04-05 07:57:41 -04:00
fish_test.go Move some test helpers from docs_test to fish_test 2022-04-25 10:04:40 -07:00
fish.go Exclude hidden sub-command flags from docs 2022-04-18 20:58:38 -05:00
flag_bool.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_duration.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_float64_slice.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_float64.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_generic.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_int64_slice.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_int64.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_int_slice.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_int.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_path.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_string_slice.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_string.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_test.go Merge branch 'main' into mostynb-report_source_of_parse_errors 2022-05-07 08:57:48 -04:00
flag_timestamp.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_uint64.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag_uint.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
flag-spec.yaml Generate flag types (again?) 2022-05-01 23:02:05 -04:00
flag.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-22 11:06:38 -04:00
funcs.go Unshadow context package 2022-04-23 22:07:16 -04:00
go.mod Guard suggestion capability (+ dependency) with build tag 2022-05-07 15:21:00 -04:00
go.sum Guard suggestion capability (+ dependency) with build tag 2022-05-07 15:21:00 -04:00
godoc-current.txt Merge pull request #1396 from urfave/suggestion-pluggability 2022-05-22 11:14:46 -04:00
help_test.go Add word-wrap support, with wrap length provided by the user 2022-05-23 20:42:16 +02:00
help.go Add word-wrap support, with wrap length provided by the user 2022-05-23 20:42:16 +02:00
helpers_test.go Add Destination field to TimestampFlag 2021-03-07 03:36:56 +00:00
LICENSE Cleaning up some release-related metadata 2022-04-24 08:10:33 -04:00
Makefile Unshallow the clone + toc cleanups 2022-05-18 23:17:57 -04:00
mkdocs-requirements.txt Attempt to work around materialx yaml loader boom 2022-05-18 22:58:46 -04:00
mkdocs.yml Use correctly spelled repo name in mkdocs config 2022-05-18 22:30:07 -04:00
parse.go Add suggestions support 2020-03-03 13:06:34 +01:00
README.md Point to the docs tree and site from top-level README 2022-05-18 22:34:28 -04:00
sort_test.go Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
sort.go Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
suggestions_test.go Also make the did-you-mean template pluggable 2022-05-17 09:24:17 -04:00
suggestions.go Also make the did-you-mean template pluggable 2022-05-17 09:24:17 -04:00
template.go Add word-wrap support, with wrap length provided by the user 2022-05-23 20:42:16 +02:00
zz_generated.flags_test.go Generate RequiredFlag and VisibleFlag implementations 2022-05-08 13:52:32 -04:00
zz_generated.flags.go Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-19 07:40:56 -04:00

cli

GoDoc codebeat Go Report Card codecov

cli is a simple, fast, and fun package for building command line apps in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way.

Documentation

More documentation is available in ./docs or the hosted documentation site at https://cli.urfave.org.

License

See LICENSE