Dan Buch
a5ec63b31f
More porting fixes and un-lost changes
2 years ago
Dan Buch
d294a88a47
Adjust expectations around categorized flags
2 years ago
Dan Buch
da23da70df
Merge commit '82bdf5f' into v3-porting
2 years ago
Dan Buch
581cfd175a
Merge commit '0d0d329' into v3-porting
2 years ago
devinnwang
ba96587f56
Fix:(issue_1548) Check root before run default cmd
2 years ago
Naveen Gogineni
4a109bc0ce
Fix tests
2 years ago
Naveen Gogineni
a9d6b0d821
Changes from code review
2 years ago
Naveen Gogineni
59095aa762
make cmd.Run use varargs
2 years ago
Naveen Gogineni
adcce134f3
Rebase origin
2 years ago
Naveen Gogineni
2047c6630c
Cleanup
2 years ago
Naveen Gogineni
bc9ae33465
Merge latest and fix tests
2 years ago
Naveen Gogineni
d5947d7814
Initial cut
2 years ago
Dan Buch
64facdbe2f
Merge remote-tracking branch 'origin/v3-dev-main' into v3-porting
2 years ago
Naveen Gogineni
ae8c5118f2
Fix command help subcommand
2 years ago
Naveen Gogineni
1a31a6e2fc
Revert "Remove all flag interfaces"
...
This reverts commit 268cb973f8
.
2 years ago
Naveen Gogineni
81f9145708
Refactor code
2 years ago
Naveen Gogineni
02613e50be
Fix tests
2 years ago
Naveen Gogineni
2da6e68555
Fix command help subcommand
2 years ago
Dan Buch
f8faf77e43
Post-porting fixes for v3
2 years ago
Naveen Gogineni
8ef92d2a24
Remove un-needed func
2 years ago
Naveen Gogineni
c2ecb4469f
Remove un-needed func
2 years ago
Naveen Gogineni
57ff098ca7
Fix:(issue_557) Make help output consistent between different invocations
2 years ago
Wendell Sun
e2e14ec6ef
feat: flag action
2 years ago
Dokiy
67f592aadb
Fix HideHelp
2 years ago
dearchap
de83493182
Merge pull request #1499 from dearchap/issue_557
...
Fix help results inconsistency
2 years ago
Naveen Gogineni
d6395333f1
Remove un-needed func
2 years ago
Naveen Gogineni
aecd7c159a
Remove un-needed func
2 years ago
Naveen Gogineni
e925d26b97
Fix:(issue_557) Make help output consistent between different invocations
2 years ago
Wendell Sun
14366f7030
feat: flag action
2 years ago
Dokiy
1a1b9cd563
Fix HideHelp
2 years ago
Dan Buch
a78717f4f9
Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support
2 years ago
Dan Buch
63b1a7deee
A few follow-up conflict resolutions
2 years ago
Dan Buch
3d67b75be7
Merge branch 'suggestions' of ssh://github.com/saschagrunert/cli into saschagrunert-suggestions
2 years ago
Dan Buch
16d5d5a3df
Some changes per feedback in #1368
2 years ago
Dan Buch
156eaafb22
Rework flag categories a bit
...
with internal maps instead of slices and slightly less public API
surface area
2 years ago
Dan Buch
a583a102fd
Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support
2 years ago
Dan Buch
9ce946162f
Unshadow `context` package
...
and consistently name `*cli.Context` vars and method receivers `cCtx`
2 years ago
Dan Buch
44958693a1
Merge branch 'add-flag-category-support' of ssh://github.com/michaeljs1990/cli into michaeljs1990-add-flag-category-support
2 years ago
Dan Buch
4b238b8ff0
Merge branch 'master' into suggestions
2 years ago
Robert Liebowitz
b7da09a687
Merge pull request #1255 from cpacifying/master
...
UsageText to be passed from Command to App in startApp
3 years ago
Naveen Gogineni
07e1fdf17d
Cleanup context.go
3 years ago
cpacifying
9433f216ff
UsageText to be passed from Command to App in startApp
3 years ago
Travis Lane
17032bc33c
fix: Propagate App.Reader to subcommands
...
This change copies the `Reader` set in `App` to the new `App` created for
subcommands. I've also added a basic test to demonstrate the issue.
3 years ago
Irioth
6d09498169
hide version flag for subcommands
4 years ago
Aloïs Micard
c261e4dbd3
Harmonize BeforeError usage in Command#Run
4 years ago
Akihiro Suda
75e7c526bd
Add HideHelpCommand
...
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand`
only hides `help` command and leave `--help` flag as-is.
The behavior of `HideHelp` is untouched in this commit.
Fix #523
Replace #636
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
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
Roberto Hidalgo
f3295e3cdb
Check for parsing errors within parse.go:parseIter
...
Add description to that function's docstring, and delete extraneous space
5 years ago
Roberto Hidalgo
90a62d7b0c
Prevent panic on flagSet access from custom BashComplete
...
Fixes #944
5 years ago
Ajitem Sahasrabuddhe
3bd997859c
make categories private
5 years ago