Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alecthomas/kong
/ functions
Functions
738 in github.com/alecthomas/kong
⨍
Functions
738
◇
Types & classes
229
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:760
Method
Decode
(ctx *kong.DecodeContext, target reflect.Value)
mapper_test.go:796
Method
Decode
(ctx *kong.DecodeContext)
mapper_test.go:827
Method
Decode
(ctx *kong.DecodeContext)
resolver_test.go:158
Method
Decode
(ctx *kong.DecodeContext, target reflect.Value)
resolver_test.go:325
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:776
Method
Decode
(ctx *DecodeContext)
mapper.go:899
Method
Decode
(ctx *DecodeContext)
mapper.go:923
Method
Decode
Decode is used to create a side effect of changing the current working directory.
util.go:48
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
()
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:295
Method
GetBool
GetBool returns true if the given tag looks like a boolean truth string.
tag.go:372
Method
GetFloat
GetFloat parses the given tag as a float64.
tag.go:377
Method
GetInt
GetInt parses the given tag as an int64.
tag.go:382
Function
Help
Help printer to use.
options.go:291
Method
Help
()
help_test.go:30
Method
Help
()
help_test.go:871
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:589
Method
IsBool
()
mapper_test.go:104
Method
IsBool
()
mapper.go:53
Method
IsBool
()
mapper.go:67
Method
IsBool
()
mapper.go:326
Method
IsBool
()
_examples/docker/main.go:26
Method
IsBoolFromValue
IsBoolFromValue implements BoolMapperExt
mapper.go:761
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:765
Method
PopUntil
PopUntil predicate returns true.
scanner.go:200
Method
ProvideFoo
()
kong_test.go:2643
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:345
Method
Resolve
(context *kong.Context, parent *kong.Path, flag *kong.Flag)
resolver_test.go:455
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:612
Method
Run
()
kong_test.go:384
Method
Run
(key string)
kong_test.go:771
Method
Run
(key string)
kong_test.go:786
Method
Run
()
kong_test.go:825
Method
Run
()
kong_test.go:1748
Method
Run
()
kong_test.go:1755
Method
Run
()
kong_test.go:2615
Method
Run
(t *testing.T, ps ProvidedString)
kong_test.go:2647
Method
Run
()
kong_test.go:2734
Method
Run
(name string)
kong_test.go:2858
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
Method
Run
(globals *Globals)
_examples/docker/commands.go:169
Method
Run
(globals *Globals)
_examples/docker/commands.go:177
Method
Run
(globals *Globals)
_examples/docker/commands.go:185
Method
Run
(globals *Globals)
_examples/docker/commands.go:193
Method
Run
(globals *Globals)
_examples/docker/commands.go:201
Method
Run
(globals *Globals)
_examples/docker/commands.go:209
Method
Run
(globals *Globals)
_examples/docker/commands.go:217
Method
Run
(globals *Globals)
_examples/docker/commands.go:225
Method
Run
(globals *Globals)
_examples/docker/commands.go:233
Method
Run
(globals *Globals)
_examples/docker/commands.go:241
Method
Run
(globals *Globals)
_examples/docker/commands.go:249
← previous
next →
301–400 of 738, ranked by callers