Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alecthomas/kong
/ functions
Functions
778 in github.com/alecthomas/kong
⨍
Functions
778
◇
Types & classes
240
Method
BeforeResolve
BeforeResolve adds a resolver.
util.go:16
Function
BenchmarkKong_interpolate
(b *testing.B)
benchmark_test.go:11
Function
Benchmark_interpolateValue
(b *testing.B)
benchmark_test.go:53
Method
BindSingletonProvider
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
Method
BindTo
BindTo adds a binding to the Context. This will typically have to be called like so: BindTo(impl, (*MyInterface)(nil))
context.go:222
Function
ClearResolvers
ClearResolvers clears all existing resolvers.
options.go:409
Method
Decode
(ctx *kong.DecodeContext, target reflect.Value)
mapper_test.go:96
Method
Decode
(ctx *kong.DecodeContext)
mapper_test.go:252
Method
Decode
(ctx *kong.DecodeContext, target reflect.Value)
mapper_test.go:792
Method
Decode
(ctx *kong.DecodeContext, target reflect.Value)
mapper_test.go:828
Method
Decode
(ctx *kong.DecodeContext)
mapper_test.go:859
Method
Decode
(ctx *kong.DecodeContext)
resolver_test.go:176
Method
Decode
(ctx *kong.DecodeContext, target reflect.Value)
resolver_test.go:343
Method
Decode
(ctx *DecodeContext)
mapper.go:47
Method
Decode
(ctx *DecodeContext, target reflect.Value)
mapper.go:60
Method
Decode
(ctx *DecodeContext, target reflect.Value)
mapper.go:73
Method
Decode
(ctx *DecodeContext, target reflect.Value)
mapper.go:87
Method
Decode
(ctx *DecodeContext, target reflect.Value)
mapper.go:101
Method
Decode
(ctx *DecodeContext, target reflect.Value)
mapper.go:145
Method
Decode
(ctx *DecodeContext, target reflect.Value)
mapper.go:298
Method
Decode
(ctx *DecodeContext, target reflect.Value)
mapper.go:786
Method
Decode
(ctx *DecodeContext)
mapper.go:922
Method
Decode
(ctx *DecodeContext)
mapper.go:946
Method
Decode
Decode is used to create a side effect of changing the current working directory.
util.go:48
Method
Decode
(ctx *kong.DecodeContext, target reflect.Value)
kong_test.go:491
Method
Decode
(ctx *kong.DecodeContext)
kong_test.go:555
Method
Decode
(ctx *kong.DecodeContext)
_examples/docker/main.go:25
Function
DefaultHelpPrinter
DefaultHelpPrinter is the default HelpPrinter.
help.go:128
Function
DefaultHelpValueFormatter
DefaultHelpValueFormatter is the default HelpValueFormatter.
help.go:97
Function
DefaultShortHelpPrinter
DefaultShortHelpPrinter is the default HelpPrinter for short help on error.
help.go:113
Method
Depth
Depth of the command from the application root.
model.go:148
Function
Embed
Embed a struct into the root of the CLI. "strct" must be a pointer to a structure.
options.go:76
Method
Error
()
options_test.go:188
Method
Error
()
options_test.go:209
Method
Error
()
scanner.go:165
Method
ExitCode
ExitCode returns the status that Kong should exit with if it fails with a ParseError.
error.go:16
Function
ExplicitGroups
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
Method
Find
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
Method
Flags
Flags returns the accumulated available flags.
context.go:389
Method
GetBool
GetBool returns true if the given tag looks like a boolean truth string.
tag.go:378
Method
GetFloat
GetFloat parses the given tag as a float64.
tag.go:383
Method
GetInt
GetInt parses the given tag as an int64.
tag.go:388
Function
Help
Help printer to use.
options.go:291
Method
Help
()
help_test.go:30
Method
Help
()
help_test.go:883
Method
Help
()
_examples/shell/help/main.go:26
Method
Help
()
_examples/shell/help/main.go:34
Function
HelpFormatter
HelpFormatter configures how the help text is formatted. Deprecated: Use ValueFormatter() instead.
options.go:312
Method
IgnoreDefault
()
help.go:19
Method
IgnoreDefault
()
context.go:721
Method
IsBool
()
mapper_test.go:104
Method
IsBool
()
mapper.go:53
Method
IsBool
()
mapper.go:67
Method
IsBool
()
mapper.go:311
Method
IsBool
()
kong_test.go:515
Method
IsBool
()
kong_test.go:588
Method
IsBool
()
_examples/docker/main.go:26
Method
IsBoolFromValue
IsBoolFromValue implements BoolMapperExt
mapper.go:771
Function
KindMapper
KindMapper registers a mapper to a kind.
options.go:191
Method
Leaf
Leaf returns true if this Node is a leaf node.
model.go:65
Function
LineIndenter
LineIndenter adds line points to every new indent.
help.go:565
Method
Method
()
options_test.go:25
Method
PlaceHolder
(flag *kong.Flag)
mapper_test.go:797
Method
PopUntil
PopUntil predicate returns true.
scanner.go:200
Method
ProvideFoo
()
kong_test.go:3082
Method
Push
Push an untyped Token onto the front of the Scanner.
scanner.go:221
Method
Reset
Reset recursively resets values to defaults (as specified in the grammar) or the zero value.
context.go:439
Method
Resolve
(context *kong.Context, parent *kong.Path, flag *kong.Flag)
resolver_test.go:473
Method
Resolve
(context *Context, parent *Path, flag *Flag)
resolver.go:25
Method
Resolve
Resolve walks through the traced path, applying resolvers to any unset flags.
context.go:744
Method
Run
()
kong_test.go:386
Method
Run
(key string)
kong_test.go:904
Method
Run
(key string)
kong_test.go:919
Method
Run
()
kong_test.go:958
Method
Run
()
kong_test.go:2170
Method
Run
()
kong_test.go:2177
Method
Run
()
kong_test.go:3054
Method
Run
(t *testing.T, ps ProvidedString)
kong_test.go:3086
Method
Run
()
kong_test.go:3173
Method
Run
(name string)
kong_test.go:3322
Method
Run
(ctx *kong.Context)
_examples/server/console.go:25
Method
Run
Run shows help.
_examples/server/console.go:35
Method
Run
(globals *Globals)
_examples/docker/commands.go:14
Method
Run
(globals *Globals)
_examples/docker/commands.go:25
Method
Run
(globals *Globals)
_examples/docker/commands.go:33
Method
Run
(globals *Globals)
_examples/docker/commands.go:49
Method
Run
(globals *Globals)
_examples/docker/commands.go:57
Method
Run
(globals *Globals)
_examples/docker/commands.go:65
Method
Run
(globals *Globals)
_examples/docker/commands.go:73
Method
Run
(globals *Globals)
_examples/docker/commands.go:81
Method
Run
(globals *Globals)
_examples/docker/commands.go:89
Method
Run
(globals *Globals)
_examples/docker/commands.go:97
Method
Run
(globals *Globals)
_examples/docker/commands.go:105
Method
Run
(globals *Globals)
_examples/docker/commands.go:113
Method
Run
(globals *Globals)
_examples/docker/commands.go:121
Method
Run
(globals *Globals)
_examples/docker/commands.go:129
Method
Run
(globals *Globals)
_examples/docker/commands.go:137
Method
Run
(globals *Globals)
_examples/docker/commands.go:145
Method
Run
(globals *Globals)
_examples/docker/commands.go:153
Method
Run
(globals *Globals)
_examples/docker/commands.go:161
← previous
next →
301–400 of 778, ranked by callers