summaryrefslogtreecommitdiff
path: root/vendor/github.com/urfave/cli/funcs.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2017-12-04 10:24:08 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-04 20:03:16 +0000
commit265efcb9f88a78ee52eb5644d4db86e49788991f (patch)
treecf0d95609547408a30bcad558829701b344fc787 /vendor/github.com/urfave/cli/funcs.go
parent750fc239b5da8e3f2792ae33f46a671ddf4622e3 (diff)
downloadpodman-265efcb9f88a78ee52eb5644d4db86e49788991f.tar.gz
podman-265efcb9f88a78ee52eb5644d4db86e49788991f.tar.bz2
podman-265efcb9f88a78ee52eb5644d4db86e49788991f.zip
Vendor in latest urfave/cli
The latest urfave/cli has the ability for us to use short options when it is a bool. Signed-off-by: baude <bbaude@redhat.com> Closes: #100 Approved by: rhatdan
Diffstat (limited to 'vendor/github.com/urfave/cli/funcs.go')
-rw-r--r--vendor/github.com/urfave/cli/funcs.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/urfave/cli/funcs.go b/vendor/github.com/urfave/cli/funcs.go
index cba5e6cb0..0036b1130 100644
--- a/vendor/github.com/urfave/cli/funcs.go
+++ b/vendor/github.com/urfave/cli/funcs.go
@@ -23,6 +23,22 @@ type CommandNotFoundFunc func(*Context, string)
// is displayed and the execution is interrupted.
type OnUsageErrorFunc func(context *Context, err error, isSubcommand bool) error
+// ExitErrHandlerFunc is executed if provided in order to handle ExitError values
+// returned by Actions and Before/After functions.
+type ExitErrHandlerFunc func(context *Context, err 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
+
+// FlagFileHintFunc is used by the default FlagStringFunc to annotate flag help
+// with the file path details.
+type FlagFileHintFunc func(filePath, str string) string