diff options
| author | Joseph Richey <joerichey@google.com> | 2017-09-29 03:16:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-29 03:16:43 -0700 |
| commit | d6efd2ab463e82cc3a78860384f26d809bd76ce5 (patch) | |
| tree | f2fbf84f4e160d0d5e107ee05338be5e0133f01b /vendor/github.com/urfave/cli/funcs.go | |
| parent | 3ca15548454f773ea3290f810ed1b1d55fec1783 (diff) | |
| parent | ddcc450fc6d78806a0d0369bb1cdc2155f4e328e (diff) | |
Merge pull request #64 from google/new_values
Update all external dependencies to the latest version
Diffstat (limited to 'vendor/github.com/urfave/cli/funcs.go')
| -rw-r--r-- | vendor/github.com/urfave/cli/funcs.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/urfave/cli/funcs.go b/vendor/github.com/urfave/cli/funcs.go index cba5e6c..3ad3c6d 100644 --- a/vendor/github.com/urfave/cli/funcs.go +++ b/vendor/github.com/urfave/cli/funcs.go @@ -26,3 +26,11 @@ type OnUsageErrorFunc func(context *Context, err error, isSubcommand bool) error // FlagStringFunc is used by the help generation to display a flag, which is // expected to be a single line. type FlagStringFunc func(Flag) string + +// FlagNamePrefixFunc is used by the default FlagStringFunc to create prefix +// text for a flag's full name. +type FlagNamePrefixFunc func(fullName, placeholder string) string + +// FlagEnvHintFunc is used by the default FlagStringFunc to annotate flag help +// with the environment variable details. +type FlagEnvHintFunc func(envVar, str string) string |