MCPcopy Create free account

hub / github.com/alecthomas/kong / functions

Functions778 in github.com/alecthomas/kong

MethodBeforeResolve
BeforeResolve adds a resolver.
util.go:16
FunctionBenchmarkKong_interpolate
(b *testing.B)
benchmark_test.go:11
FunctionBenchmark_interpolateValue
(b *testing.B)
benchmark_test.go:53
MethodBindSingletonProvider
BindSingletonProvider allows binding of provider functions. The provider will be called once and the result cached. "provider" must be a function wit
context.go:242
MethodBindTo
BindTo adds a binding to the Context. This will typically have to be called like so: BindTo(impl, (*MyInterface)(nil))
context.go:222
FunctionClearResolvers
ClearResolvers clears all existing resolvers.
options.go:409
MethodDecode
(ctx *kong.DecodeContext, target reflect.Value)
mapper_test.go:96
MethodDecode
(ctx *kong.DecodeContext)
mapper_test.go:252
MethodDecode
(ctx *kong.DecodeContext, target reflect.Value)
mapper_test.go:792
MethodDecode
(ctx *kong.DecodeContext, target reflect.Value)
mapper_test.go:828
MethodDecode
(ctx *kong.DecodeContext)
mapper_test.go:859
MethodDecode
(ctx *kong.DecodeContext)
resolver_test.go:176
MethodDecode
(ctx *kong.DecodeContext, target reflect.Value)
resolver_test.go:343
MethodDecode
(ctx *DecodeContext)
mapper.go:47
MethodDecode
(ctx *DecodeContext, target reflect.Value)
mapper.go:60
MethodDecode
(ctx *DecodeContext, target reflect.Value)
mapper.go:73
MethodDecode
(ctx *DecodeContext, target reflect.Value)
mapper.go:87
MethodDecode
(ctx *DecodeContext, target reflect.Value)
mapper.go:101
MethodDecode
(ctx *DecodeContext, target reflect.Value)
mapper.go:145
MethodDecode
(ctx *DecodeContext, target reflect.Value)
mapper.go:298
MethodDecode
(ctx *DecodeContext, target reflect.Value)
mapper.go:786
MethodDecode
(ctx *DecodeContext)
mapper.go:922
MethodDecode
(ctx *DecodeContext)
mapper.go:946
MethodDecode
Decode is used to create a side effect of changing the current working directory.
util.go:48
MethodDecode
(ctx *kong.DecodeContext, target reflect.Value)
kong_test.go:491
MethodDecode
(ctx *kong.DecodeContext)
kong_test.go:555
MethodDecode
(ctx *kong.DecodeContext)
_examples/docker/main.go:25
FunctionDefaultHelpPrinter
DefaultHelpPrinter is the default HelpPrinter.
help.go:128
FunctionDefaultHelpValueFormatter
DefaultHelpValueFormatter is the default HelpValueFormatter.
help.go:97
FunctionDefaultShortHelpPrinter
DefaultShortHelpPrinter is the default HelpPrinter for short help on error.
help.go:113
MethodDepth
Depth of the command from the application root.
model.go:148
FunctionEmbed
Embed a struct into the root of the CLI. "strct" must be a pointer to a structure.
options.go:76
MethodError
()
options_test.go:188
MethodError
()
options_test.go:209
MethodError
()
scanner.go:165
MethodExitCode
ExitCode returns the status that Kong should exit with if it fails with a ParseError.
error.go:16
FunctionExplicitGroups
ExplicitGroups associates `group` field tags with their metadata. It can be used to provide a title or header to a command or flag group.
options.go:383
MethodFind
Find a command/argument/flag by pointer to its field. Returns nil if not found. Panics if ptr is not a pointer.
model.go:72
MethodFlags
Flags returns the accumulated available flags.
context.go:389
MethodGetBool
GetBool returns true if the given tag looks like a boolean truth string.
tag.go:378
MethodGetFloat
GetFloat parses the given tag as a float64.
tag.go:383
MethodGetInt
GetInt parses the given tag as an int64.
tag.go:388
FunctionHelp
Help printer to use.
options.go:291
MethodHelp
()
help_test.go:30
MethodHelp
()
help_test.go:883
MethodHelp
()
_examples/shell/help/main.go:26
MethodHelp
()
_examples/shell/help/main.go:34
FunctionHelpFormatter
HelpFormatter configures how the help text is formatted. Deprecated: Use ValueFormatter() instead.
options.go:312
MethodIgnoreDefault
()
help.go:19
MethodIgnoreDefault
()
context.go:721
MethodIsBool
()
mapper_test.go:104
MethodIsBool
()
mapper.go:53
MethodIsBool
()
mapper.go:67
MethodIsBool
()
mapper.go:311
MethodIsBool
()
kong_test.go:515
MethodIsBool
()
kong_test.go:588
MethodIsBool
()
_examples/docker/main.go:26
MethodIsBoolFromValue
IsBoolFromValue implements BoolMapperExt
mapper.go:771
FunctionKindMapper
KindMapper registers a mapper to a kind.
options.go:191
MethodLeaf
Leaf returns true if this Node is a leaf node.
model.go:65
FunctionLineIndenter
LineIndenter adds line points to every new indent.
help.go:565
MethodMethod
()
options_test.go:25
MethodPlaceHolder
(flag *kong.Flag)
mapper_test.go:797
MethodPopUntil
PopUntil predicate returns true.
scanner.go:200
MethodProvideFoo
()
kong_test.go:3082
MethodPush
Push an untyped Token onto the front of the Scanner.
scanner.go:221
MethodReset
Reset recursively resets values to defaults (as specified in the grammar) or the zero value.
context.go:439
MethodResolve
(context *kong.Context, parent *kong.Path, flag *kong.Flag)
resolver_test.go:473
MethodResolve
(context *Context, parent *Path, flag *Flag)
resolver.go:25
MethodResolve
Resolve walks through the traced path, applying resolvers to any unset flags.
context.go:744
MethodRun
()
kong_test.go:386
MethodRun
(key string)
kong_test.go:904
MethodRun
(key string)
kong_test.go:919
MethodRun
()
kong_test.go:958
MethodRun
()
kong_test.go:2170
MethodRun
()
kong_test.go:2177
MethodRun
()
kong_test.go:3054
MethodRun
(t *testing.T, ps ProvidedString)
kong_test.go:3086
MethodRun
()
kong_test.go:3173
MethodRun
(name string)
kong_test.go:3322
MethodRun
(ctx *kong.Context)
_examples/server/console.go:25
MethodRun
Run shows help.
_examples/server/console.go:35
MethodRun
(globals *Globals)
_examples/docker/commands.go:14
MethodRun
(globals *Globals)
_examples/docker/commands.go:25
MethodRun
(globals *Globals)
_examples/docker/commands.go:33
MethodRun
(globals *Globals)
_examples/docker/commands.go:49
MethodRun
(globals *Globals)
_examples/docker/commands.go:57
MethodRun
(globals *Globals)
_examples/docker/commands.go:65
MethodRun
(globals *Globals)
_examples/docker/commands.go:73
MethodRun
(globals *Globals)
_examples/docker/commands.go:81
MethodRun
(globals *Globals)
_examples/docker/commands.go:89
MethodRun
(globals *Globals)
_examples/docker/commands.go:97
MethodRun
(globals *Globals)
_examples/docker/commands.go:105
MethodRun
(globals *Globals)
_examples/docker/commands.go:113
MethodRun
(globals *Globals)
_examples/docker/commands.go:121
MethodRun
(globals *Globals)
_examples/docker/commands.go:129
MethodRun
(globals *Globals)
_examples/docker/commands.go:137
MethodRun
(globals *Globals)
_examples/docker/commands.go:145
MethodRun
(globals *Globals)
_examples/docker/commands.go:153
MethodRun
(globals *Globals)
_examples/docker/commands.go:161
← previousnext →301–400 of 778, ranked by callers