Sebastian Sprenger
c202606a17
fix golint issues
2017-10-06 07:29:13 +02:00
Sebastian Sprenger
c3cc74dac7
fix ineffective assigns
2017-10-06 07:28:43 +02:00
Sebastian Sprenger
67ee172e6d
fix misspelling issue
2017-10-06 07:28:18 +02:00
Jesse Szwedko
ac249472b7
Merge pull request #661 from rliebz/custom-flag-help
...
Allow customization of prefixes and environment variable hints in flag help strings
2017-09-25 20:41:18 -07:00
Robert Liebowitz
cbbe4c1a2c
Add tests for custom flag prefix/env hints
2017-09-18 00:44:42 -04:00
rliebz
11d45572f9
Export funcs to configure flag prefix/env hints
...
This will allow users to customize the prefix section or env hint
section of the flag entries in the help menu without having to
reimplement the rest of the logic required in defining FlagStringer.
2017-09-18 00:00:27 -04:00
Jesse Szwedko
7fb9c86b14
Merge pull request #664 from maguro/master
...
Add newline before command categories
2017-09-10 21:08:19 -07:00
Alan D. Cabrera
1d334f10ce
Add newline before command categories
...
The simple formatting change adds a nice blank line before each command
category. Documentation in README.md is also updated to be more
accurate.
2017-09-08 10:43:30 -07:00
f017f86fcc
Merge pull request #659 from urfave/define-flag-precedence
...
Define flag source precedence in README
2017-08-13 10:59:49 -04:00
44c648739b
Merge branch 'master' into define-flag-precedence
2017-08-13 10:54:04 -04:00
Jesse Szwedko
cfb3883072
Prepare CHANGELOG for v1.20.0 release
2017-08-10 18:42:03 -07:00
Jesse Szwedko
e1fa109a31
Define flag source precedence in README
...
Fixes #646
2017-08-10 17:54:24 -07:00
Jesse Szwedko
b99aa811b4
Merge pull request #654 from urfave/appveyor-updates
...
Update os, image, golang, and python versions used in appveyor
2017-08-04 02:34:15 -07:00
Dan Buch
f59114b410
Update os, image, golang, and python versions used in appveyor
2017-08-03 22:59:38 -04:00
2903b76a12
Merge branch 'v1' into master
2017-08-03 17:58:28 -04:00
9128fe1c38
Merge pull request #652 from urfave/travis-tweaks
...
Update travis config
2017-08-03 17:57:53 -04:00
Dan Buch
184ffb5e57
Use os
matrix instead of explicit matrix.include
2017-08-03 15:38:19 -04:00
Dan Buch
8164aa88ca
Update travis config
...
to only test on 1.8.x, and ensure we route to Ubuntu Trusty and a
recent macOS image.
2017-08-03 15:07:56 -04:00
Jesse Szwedko
4b90d79a68
Merge pull request #643 from nikkolasg/patch-1
...
[example] Make the basic example build-able.
2017-07-06 12:46:25 -07:00
Nicolas Gailly
a6dd54e94b
make the basic example build-able.
2017-07-06 16:20:09 +02:00
Jesse Szwedko
b892ba3809
Merge pull request #583 from karalabe/invalidate-isset-cache
...
Invalidate context.setFlags cache on modification.
2017-06-24 20:28:08 -07:00
Jesse Szwedko
3ac1e107fe
Merge pull request #593 from urfave/command-subcommand-usage-text
...
Display UsageText on Commands and Subcommands
2017-06-24 20:27:41 -07:00
Jesse Szwedko
3ddfc81916
Merge pull request #626 from urfave/do-not-double-print-before-errors
...
Do not double print errors from Before()
2017-06-24 20:12:38 -07:00
Jesse Szwedko
4fb301aa38
Merge branch 'master' into invalidate-isset-cache
2017-06-24 20:04:24 -07:00
Jesse Szwedko
48db8e2435
Display UsageText on Commands and Subcommands
...
If it is set, otherwise build the usage.
Fixes #592
2017-06-24 20:02:36 -07:00
Jesse Szwedko
c64d74a5d9
Do not double print errors from Before()
...
They should be handled by HandleExitCoder() as `After()` errors are.
2017-06-24 19:57:19 -07:00
Jesse Szwedko
f229e3c59c
Merge pull request #629 from josephlr/use-usage-error-for-app
...
Subcommand OnUsageError should be passed to app
2017-06-24 19:32:30 -07:00
Joe Richey joerichey@google.com
291122b8f0
Subcommand OnUsageError should be passed to app
...
Not all of the Command components were being passed to the created App
in the startApp function.
2017-06-21 17:55:49 -07:00
Jesse Szwedko
cf33a9befe
Merge pull request #586 from minio/extra-info
...
Add support for custom help templates.
2017-06-11 17:00:38 -07:00
Jesse Szwedko
74811faef3
Merge branch 'master' into extra-info
2017-06-11 16:24:10 -07:00
Jesse Szwedko
db0ff44081
Merge pull request #630 from josephlr/support-custom-flags
...
Add ability to use custom Flag types
2017-06-11 15:37:36 -07:00
Harshavardhana
dd3849a7e6
Add tests as requested.
2017-05-08 09:53:53 -07:00
Harshavardhana
baa33cb888
Add support for ExtraInfo.
2017-05-08 09:53:53 -07:00
Harshavardhana
f7d6a07f2d
Add support for custom help templates.
2017-05-08 09:53:53 -07:00
Joe Richey joerichey@google.com
1794792adf
Add ability to use custom Flag types
...
Users can now use custom flags types (conforming to the Flag interface)
in their applications. They can also use custom flags for the three
global flags (Help, Version, bash completion).
2017-05-05 22:24:14 -07:00
Jesse Szwedko
d70f47eeca
Merge pull request #627 from urfave/use-command-context-in-usage-error
...
Rely on Command context in Run()
2017-05-05 21:25:29 -07:00
Jesse Szwedko
87fe13079e
Rely on Command context in Run()
...
Was previously relying on the parent context which caused things like
`.Command` to not be available to OnUsageError().
Fixes #609
2017-04-24 15:19:34 -07:00
Jesse Szwedko
ab403a54a1
Merge pull request #616 from tbaud0n/master
...
Fix autocomplete issue when multiple apps run autocomplete from etc/bash_completion.d directory
2017-04-24 14:31:22 -07:00
Jesse Szwedko
d3793766a3
Merge branch 'master' into master
2017-04-24 14:13:35 -07:00
Jesse Szwedko
f6e8084112
Merge remote-tracking branch 'origin/master' into v1
2017-04-24 11:44:41 -07:00
Jesse Szwedko
924042785a
Merge pull request #624 from urfave/fetch-needed-commands
...
Explicitly fetch `goimports`
2017-04-24 11:43:35 -07:00
Jesse Szwedko
1bf0bb96b7
Only support supported Go versions
...
As described on https://github.com/golang/go/wiki/Go-Release-Cycle
The maintainers do not test compatibility for libraries (e.g. in
golang.org/x/tools) on older versions.
2017-04-24 11:02:41 -07:00
Jesse Szwedko
572dc46db5
Explicitly fetch goimports
...
Fetching the whole tree was failing on some Go versions and we really
only need goimports.
2017-04-24 10:40:54 -07:00
Tony
b9c5353920
Unset PROG variable to fix issue when mulitple apps run autocomplete from etc/bash_completion.d directory
2017-04-06 15:11:23 +02:00
Jesse Szwedko
8ba6f23b6e
Merge pull request #582 from urfave/fix-altsrc-slice-inputs
...
Fix altsrc slice inputs so that they correctly parse
2017-03-28 18:35:17 -07:00
Jesse Szwedko
beddedeabd
Merge branch 'master' into fix-altsrc-slice-inputs
2017-03-27 20:46:54 -07:00
Jesse Szwedko
9e5b04886c
Remove logic that exited even if the error was not an OsExiter
...
This was introduced in #496 , but was discovered to be a regression in
the behavior of the library.
2017-03-04 14:33:36 -08:00
Jesse Szwedko
8d8f927bcb
Change flag test error checking to use regexp rather than strings
...
As the error messages changed in 1.8
2017-03-04 14:28:24 -08:00
Jesse Szwedko
2526b57c56
Allow slightly longer lines in Python scripts
2017-02-14 21:17:05 -08:00
Jesse Szwedko
347a9884a8
Merge pull request #589 from josephlr/subcommand-structure
...
Subcommand structure should be correctly passed to application
2017-01-28 13:39:59 -08:00