254 Commits (main)

Author SHA1 Message Date
Akihiro Suda 75e7c526bd Add HideHelpCommand
4 years ago
Sascha Grunert 002bde2233
Add suggestions support
4 years ago
Dmitry Kutakov 5998e27dd7
remove unused code
4 years ago
lynn [they] 106103ee7b
Update app.go
4 years ago
Marwan Sulaiman 7daa2d133e RunWithContext -> RunContext
5 years ago
Marwan Sulaiman 322fc3bed1 add RunWithContext + remove signal cancellation
5 years ago
Ajitem Sahasrabuddhe 286ffd2ccd
Merge branch 'master' into inconsistent-version-behaviour-v2
5 years ago
Ajitem Sahasrabuddhe 864c8349d5
Hide version info if user has not defined version
5 years ago
Roberto Hidalgo f3295e3cdb
Check for parsing errors within parse.go:parseIter
5 years ago
Ajitem Sahasrabuddhe 3bd997859c
make categories private
5 years ago
Robert Liebowitz 7d46b6d7f1
Avoid panic for missing flag value
5 years ago
Ajitem Sahasrabuddhe a9d5b68df5
Merge branch 'master' into v2-master-merge
5 years ago
Ajitem Sahasrabuddhe b161244b73
Merge latest master into v2-merge-master
5 years ago
Ajitem Sahasrabuddhe ef1ba861f7
add is set method to flag interface - refer #294
5 years ago
Ajitem Sahasrabuddhe 3515ca97b6
Make app tests pass
5 years ago
Ajitem Sahasrabuddhe c75fee9224
Merge master @1.22.1 with v2
5 years ago
Ajitem Sahasrabuddhe aed704a9d0
Merge branch 'master' into lint-fixes
5 years ago
Ajitem Sahasrabuddhe fdba7e0f8c
linter fixes
5 years ago
Robert Liebowitz 03153b9cf8 Allow combining short flags globally
5 years ago
Lynn Cyrin 38f9e1622d
add environment variable support 🎉
5 years ago
Lynn Cyrin f21b22dd90
cleanup some issues with error display
5 years ago
Lynn Cyrin 714a73f028
remove unused thing
5 years ago
Lynn Cyrin 9438aba3b8
remove showFlagError, we can use the help printer assertion to accomplish the same goal
5 years ago
Lynn Cyrin 23f09ac1e8
cleanup tests, check required flags in more places
5 years ago
Lynn Cyrin d8985dc6d5
reduce diff
5 years ago
Lynn Cyrin 19140e1fb5
show errors
5 years ago
Lynn Cyrin 2299852c3c
cleanup subcommand and specs
5 years ago
Lynn Cyrin cf824804c2
update tests
5 years ago
Lynn Cyrin 746866c10d
add update integration with the help output
5 years ago
Lynn Cyrin 9c299e7e8a
reduce diff
5 years ago
Lynn Cyrin 30a71dc427
update Run command
5 years ago
Lynn Cyrin 138dbaafec
Merge branch 'master' into required_flags
5 years ago
Iskander (Alex) Sharipov 5b83c895a7
use type switch instead of if/else
5 years ago
Michael Schuett 9720ac029c Basic working flag category support
5 years ago
Michael Schuett 9dd96e9e90 Add in Category to Flag interface
5 years ago
OneOfOne 10c9734c5e
notes
6 years ago
Gábor Lipták c6eb2a0510
Correct go vet for Go tip
7 years ago
Tyler Davis 40263f4d6a Merge branch 'master' into master
7 years ago
Sebastian Sprenger c202606a17 fix golint issues
7 years ago
OneOfOne 163f247519
lint + DefaultCommand
7 years ago
Dan Buch a61867e5e6
Merge remote-tracking branch 'origin/v1' into merging-from-v1
7 years ago
Tyler Davis 172bb92059 fix named parameter issue
7 years ago
Tyler Davis 530df59178 Pass context into handleExitCoder
7 years ago
Tyler Davis ceee6408d5 Revert "Fix how to do defaults in app.go"
7 years ago
Tyler Davis 80b09a4d11 Fix how to do defaults in app.go
7 years ago
Tyler Davis 827da610b4 Add a bit more documentation
7 years ago
Tyler Davis c48a829640 Allow custom exit err handlers
7 years ago
Jesse Szwedko c64d74a5d9 Do not double print errors from Before()
7 years ago
Harshavardhana baa33cb888 Add support for ExtraInfo.
7 years ago
Harshavardhana f7d6a07f2d Add support for custom help templates.
7 years ago
Kasey Klipsch 8fa549846e #556 broke the api for users who were using the ActionFunc
8 years ago
Joshua Rubin 2da42640ad
Merge remote-tracking branch 'origin/master' into completion_fix
8 years ago
Joshua Rubin 8dd1962f7b
change "complete" to "shellComplete"
8 years ago
Jesse Szwedko e367fafa3d Return an error when parsing environment variables for values fails
8 years ago
Jesse Szwedko 0113f56d10 If no action is specified on the command or app, print the help documentation
8 years ago
Joshua Rubin ea3df26e64
make shell autocomplete more robust
8 years ago
Jesse Szwedko b377b5d9e9 Use type assertions rather than reflection to determine how to call the `Action`
8 years ago
Jesse Szwedko 61db37e7ae Merge branch 'master' into default-writer
8 years ago
Jesse Szwedko 83497d2cda Merge remote-tracking branch 'origin/master' into v2-merge
8 years ago
Jesse Szwedko f614c177b7 Merge pull request #543 from wking/app-description
8 years ago
W. Trevor King 0c143a2a26 app: Fix trailing space for Author.String()
8 years ago
Richard Kovacs 4cc2bad36e Display error instead of just say command is incorrect
8 years ago
Jesse Szwedko 508a23430b Default app.Writer to os.Stdout
8 years ago
W. Trevor King c4a46a7df2 app: Add App.Description
8 years ago
Jesse Szwedko a5ca09a934 fixup! remove the possiblity of end-user's seeing deprecation warnings
8 years ago
Jesse Szwedko 8e6aa34a12 remove the possiblity of end-user's seeing deprecation warnings
8 years ago
Antoine Eiche 94bc26fd1c Refactoring names from bash to shell
8 years ago
Antoine Eiche 7640bef0eb Add --init-completion flag to print completion code
8 years ago
Dan Buch f7b2b93ffa
Merge remote-tracking branch 'origin/v1' into merging-from-v1
8 years ago
Radek Simko bef215fe3e app: Allocate Metadata map automatically
8 years ago
Dan Buch 99621d571e
Merge remote-tracking branch 'origin/v2' into declarativeness
8 years ago
Dan Buch df685fbacc
Remove `NewApp` initializer
8 years ago
Dan Buch 0f135b318e
Merge remote-tracking branch 'origin/v1' into merging-from-v1
8 years ago
Dan Buch 5c7afce5b8
Add help command before category scan/sort
8 years ago
Dan Buch 5a3515fdf8
Focus on catching fewer panics in HandleAction
8 years ago
Dan Buch 3d75e9e711
Go with interfaces + private opaque types
8 years ago
Dan Buch c70993dbc5 Merge branch 'v2' into minimize-struct-copying
8 years ago
Dan Buch 8f25dbb615
Ensure all flag aliases are set when Destination given
8 years ago
Dan Buch 61710ff108
Make slice wrapping pattern more consistent
8 years ago
Jesse Szwedko 024b4c6240 Update references to codegangsta to urfave (new org name)
8 years ago
Dan Buch cd10b49473
Minimize struct copying
8 years ago
Dan Buch 81fcf706ea
Replace all "stringly typed" fields with slice equivalents
8 years ago
Dan Buch c19dbaf230
Remove deprecated things and supporting code
8 years ago
Matt Farina 07ce8bf79c Cleaned up else per golint
8 years ago
Matt Farina 2f110bd745 Cleaned up exported func comments per golint
8 years ago
Matt Farina 2f4ec31264 Fixed spelling and gofmt issues
8 years ago
Dan Buch 97d2df6dd7
Merge remote-tracking branch 'origin/master' into psmit-hidden_command
8 years ago
Matt Farina 6f0b442222 Update to ErrWriter and make available on app
8 years ago
Matt Farina 2a256d4c53 Provide a variable for writing output with a default of os.Stderr
8 years ago
Dan Buch cc481d6b0e
Adjust command hiding to use similar convention as hidden flags
8 years ago
Dan Buch 4b4c07bd4f
Ensure HandleAction/HandleExitCoder work correctly with *ExitError
8 years ago
Gert-Jan Timmer a90e2e4ff1 Fix #376 NewExitError not working, reflect vals[0] cast to Interface() was missing
8 years ago
Dan Buch e0d7cbbe2c Merge pull request #372 from codegangsta/deprecation-cleanups
8 years ago
Dan Buch 007295e509
Cleaning up the recently-introduced deprecations
8 years ago
Dan Buch fed78b8bab
Rework of hidden flag impl plus some Action func corrections
8 years ago
Dan Buch e671f0b23b Merge pull request #339 from jack230230/master
8 years ago
王振威 f72d405107 Change Extras to Metadata
8 years ago
Dan Buch 06c01a4bba
A few tweaks based on feedback in #361
8 years ago
Dan Buch 4cae17cfe1
Ensure MultiError returned when both Before and After funcs given
8 years ago
Dan Buch b453bf5940
Clarifying errors returned from HandleAction + tests
8 years ago