Dan Buch
a05e4d0982
Remove App.Compiled
...
Closes #753
2 years ago
Naveen Gogineni
13cc7677ab
Add SkipFlagParsing to app
2 years ago
Naveen Gogineni
fb3a9cebb4
FIx: Allow ext flags to be opt-out by default rather than opt-in
2 years ago
dearchap
ae8d932413
Feature:(issue_269) Allow external package flag definitions ( #1540 )
...
* Feature:(issue_269) Add compatibility with external package flag definitions
* Add tests
* Add defer to remove global flag
* Use ptr to receiver for extFlag
* Add const for flag prefix to ignore
2 years ago
GuangyuFan
63cb372cce
Feature: (issue_1451) customized slice flag separator ( #1546 )
...
* feat: customized slice flag separator
* feat: modify go doc
* feat: update unit test
2 years ago
Naveen Gogineni
bb8ddda480
Cleanup: Fix app.go formatting
2 years ago
dearchap
33d08c39be
Update app.go
...
Co-authored-by: Dan Buch <dan@meatballhat.com>
2 years ago
Naveen Gogineni
00afca42c8
Add RunAsSubcommand to keep API unchanged
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
2047c6630c
Cleanup
2 years ago
Naveen Gogineni
bc9ae33465
Merge latest and fix tests
2 years ago
Naveen Gogineni
d5947d7814
Initial cut
2 years ago
Naveen Gogineni
8227be1fe9
Add tests for command.VisibleFlagCategory
2 years ago
Wendell Sun
619958c3d2
Add ActionableFlag interface instead of modifying Flag interface directly
2 years ago
Wendell Sun
14366f7030
feat: flag action
2 years ago
Naveen Gogineni
8339b59554
Fix: Help name consistency among app/commands and subcommands
2 years ago
Ilia Choly
ca9df40abd
Add App.InvalidFlagAccessHandler ( #1446 )
...
* Add App.UnknownFlagHandler
* Rename App.UnknownFlagHandler to App.InvalidFlagAccessHandler
* Traverse parent contexts
2 years ago
Naveen Gogineni
57a8423422
Fix:(issue_1094) Dont execute Before/After handlers during shell completion
2 years ago
dearchap
e3ee4fb3ef
Merge pull request #1444 from Dokiys/fix/add_after_before_help_check
...
Fix After not run
2 years ago
Dokiy
1a1b9cd563
Fix HideHelp
2 years ago
Dokiy
a1c26d5491
Fix After not run
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
9de0cd3c4a
Merge pull request #1396 from urfave/suggestion-pluggability
...
Introduce override hooks for suggestions
2 years ago
Dan Buch
a78717f4f9
Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support
2 years ago
Dan Buch
5bb9f453dc
Also make the did-you-mean template pluggable
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
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
e4580f0c50
Extend flag categorization to top-level (global) flags
2 years ago
Dan Buch
75e4ee69e9
Porting remainder of #796
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
7c50be3d7c
Switch branch references from `master` to `main`
...
Connected to #1349
2 years ago
Dan Buch
4b238b8ff0
Merge branch 'master' into suggestions
2 years ago
Naveen Gogineni
07e1fdf17d
Cleanup context.go
4 years ago
Wlad Gumenyuk
57d60cd570
Fix: typo
...
Corrected "eror" to "error" on line 331.
4 years ago
Alexander Frolov
e40b83a394
use Name as default to HelpName
4 years ago
Robert Liebowitz
30bb6982f2
Merge pull request #1191 from stellirin/master
...
feature: Add a App.Reader that defaults to os.Stdin
4 years ago
Charles Kenney
e5407cccf7
fix grammatical error
4 years ago
Adam Farden
342ce5d654
feature: Add a App.Reader that defaults to os.Stdin
...
Closes : #1190
4 years ago
Aloïs Micard
33744eb004
Harmonize BeforeError handling
4 years ago
Sebastian Malton
fed64f3ad7
add tests
5 years ago
Sebastian Malton
22b6dbaad3
Set App.ErrWriter in App.Setup()
...
- Defaults to os.Stderr
- Remove the App.errWriter() function since it is no longer needed
5 years ago
Robert Liebowitz
959cf9de8a
Update docs and tests around cli.Exit
...
Some of the docs were lacking or incomplete concerning how to properly
use cli.Exit, cli.HandleExitCoder, and the ExitErrHandler field on cli.App.
This change aims to clarify the usage of those pieces.
I also noticed that we have two identical functions now: cli.Exit and
cli.NewExitError. Since the latter seems to be more recent and less well
documented, I went ahead and marked it as deprecated so that we can keep
our public interface small.
Also added a missing test case for behavior that's been around a while
but was not documented or tested.
Related: #1089
5 years ago