Dan Buch
a5ec63b31f
More porting fixes and un-lost changes
2 years ago
Dan Buch
3d52a48204
Merge commit 'e194a18' into v3-porting
2 years ago
Dan Buch
d3a4181800
Merge commit '7563894' into v3-porting
2 years ago
Dan Buch
581cfd175a
Merge commit '0d0d329' into v3-porting
2 years ago
remiposo
bc62fff34a
Fix: Avoid duplication of help commands
2 years ago
Josh Soref
7732a512f9
Spelling ( #1543 )
...
* spelling: available
* spelling: explicitly
* spelling: feel
* spelling: github
* spelling: individual
* spelling: inputting
* spelling: occurring
* spelling: overriding
* spelling: propagated
* spelling: recursively
* spelling: reuse
* spelling: single
* spelling: value
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2 years ago
Naveen Gogineni
bc9ae33465
Merge latest and fix tests
2 years ago
Naveen Gogineni
d5947d7814
Initial cut
2 years ago
Naveen Gogineni
dccd762cbb
Componentize template
2 years ago
Naveen Gogineni
c86805de7c
Add test case
2 years ago
Anatoli Babenia
4959a9fa9b
Refactor `wrap()` and add test for empty line
2 years ago
Anatoli Babenia
e14dca7a18
Run `go fmt`
2 years ago
Anatoli Babenia
05fb755b6a
wrap: Simplify loop logic
...
Suggested by @julian7
2 years ago
Anatoli Babenia
a6f5ca69f4
wrap: Avoid trailing whitespace for empty lines
2 years ago
Naveen Gogineni
02613e50be
Fix tests
2 years ago
Naveen Gogineni
8f6acfe15d
Componentize template
2 years ago
Naveen Gogineni
6504da449b
Add test case
2 years ago
Anatoli Babenia
15b278907e
Refactor `wrap()` and add test for empty line
2 years ago
Anatoli Babenia
359e5a8d84
Run `go fmt`
2 years ago
Anatoli Babenia
1d2696072f
wrap: Simplify loop logic
...
Suggested by @julian7
2 years ago
Anatoli Babenia
3f7774aaa3
wrap: Avoid trailing whitespace for empty lines
2 years ago
Naveen Gogineni
57ff098ca7
Fix:(issue_557) Make help output consistent between different invocations
2 years ago
Naveen Gogineni
321d49344b
Add comment
2 years ago
Naveen Gogineni
e48d377e62
Remove add function
2 years ago
Naveen Gogineni
96e41a628a
Make test case more robust
2 years ago
Naveen Gogineni
d89bc4a6e2
Change way to calculate offset
2 years ago
Naveen Gogineni
e925d26b97
Fix:(issue_557) Make help output consistent between different invocations
2 years ago
dearchap
254c38ea72
Fix:(issue_1293) Wrap usage text for commands ( #1460 )
...
* Fix:(issue_1293) Wrap usage text for commands
* Change way to calculate offset
* Make test case more robust
* Remove add function
* Add comment
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
9de0cd3c4a
Merge pull request #1396 from urfave/suggestion-pluggability
...
Introduce override hooks for suggestions
2 years ago
Dan Buch
e66ce91db1
Merge remote-tracking branch 'origin/main' into applying-pr1218
2 years ago
Dan Buch
68bd4903fd
Introduce override hooks for suggestions
...
Related to https://github.com/urfave/cli/pull/1390#discussion_r871398659
2 years ago
Dan Buch
3d67b75be7
Merge branch 'suggestions' of ssh://github.com/saschagrunert/cli into saschagrunert-suggestions
2 years ago
Dan Buch
f3ef95f8cc
Tighten up restriction on SHELL match
2 years ago
Dan Buch
56837b07d3
Merge remote-tracking branch 'origin/main' into applying-pr1218
2 years ago
Dan Buch
9ce946162f
Unshadow `context` package
...
and consistently name `*cli.Context` vars and method receivers `cCtx`
2 years ago
Dan Buch
c4c15e1453
Writing tests around changes from #1186
2 years ago
Dan Buch
7a231c5eb1
Merge branch 'main' into master
2 years ago
Dan Buch
4b238b8ff0
Merge branch 'master' into suggestions
2 years ago
Ihor Urazov
1150c2e180
Properly detect Zsh shell
...
There is no need to define custom shell var, when Zsh can be detected by
checking SHELL env var.
2 years ago
Ajitem Sahasrabuddhe
09ac54c2f9
Merge pull request #1175 from imle/imle/add-better-multi-line-description-formatting
...
Added template functions for multi-line Description formatting.
4 years ago
Zack Scholl
a8e44a8b5b
show only subcommand flags with bash completion
4 years ago
knqyf263
74af85a00d
feat(help): add ShowSubcommandHelpAndExit
4 years ago
Steven Imle
be9c037806
Added template functions for multi-line Description formatting.
4 years ago
Sascha Grunert
002bde2233
Add suggestions support
...
The new option `app.Suggest` enables command and flag suggestions via
the jaro-winkler distance algorithm. Flags are scoped to their
appropriate commands whereas command suggestions are scoped to the
current command level.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
4 years ago
Liam Hampton
f29ad2ad48
fix some golint errors show in go report card
...
Signed-off-by: Liam Hampton <liam.hampton@ibm.com>
4 years ago
Robert Liebowitz
b5bef8e0b6
Merge branch 'clean-help-printer' into help-printer-v2
5 years ago
Robert Liebowitz
9ab178d174
Make app help behavior consistent with commands
5 years ago
Robert Liebowitz
a14194aa33
Improve documentation for HelpPrinter/HelpPrinterCustom
5 years ago
Robert Liebowitz
b52cca036a
Simplify duplicated function call
5 years ago