MCPcopy Create free account

hub / github.com/alecthomas/kong / types & classes

Types & classes229 in github.com/alecthomas/kong

↓ 29 callersFuncTypeOptionFunc
OptionFunc is function that adheres to the Option interface.
options.go:21
↓ 3 callersTypeAliasimpl
options_test.go:23
↓ 2 callersTypeAliasProvidedString
kong_test.go:2635
↓ 2 callersTypeAliassignatureFlag
Non-struct type implementing Signature as a flag.
signature_test.go:110
↓ 1 callersTypeAliasChangeDirFlag
ChangeDirFlag changes the current working directory to a path specified by a flag early in the parsing process, changing how other flags resolve relat
util.go:45
↓ 1 callersTypeAliasFoo
kong_test.go:2395
↓ 1 callersFuncTypeMapperFunc
A MapperFunc is a single function that complies with the Mapper interface.
mapper.go:143
↓ 1 callersFuncTypeResolverFunc
ResolverFunc is a convenience type for non-validating Resolvers.
resolver.go:21
↓ 1 callersTypeAliasVersionFlag
_examples/docker/main.go:23
↓ 1 callersFuncTypecommandFunc
func() error
kong_test.go:1753
↓ 1 callersTypeAliasjsonUnmarshalerValue
mapper_test.go:57
↓ 1 callersTypeAliasnpError
options_test.go:186
↓ 1 callersFuncTypevalidatableFunc
Proxy a validatable function to the extendedValidatable interface
context.go:1185
StructA
kong_test.go:1381
InterfaceAfterApply
AfterApply is a documentation-only interface describing hooks that run after values are set.
hooks.go:22
InterfaceAfterRun
AfterRun is a documentation-only interface describing hooks that run after Run() returns.
hooks.go:28
StructAnonymous
help_test.go:487
StructAnonymous
resolver_test.go:92
StructAnonymous
kong_test.go:956
StructApplication
Application is the root of the Kong model.
model.go:18
StructAttachCmd
_examples/docker/commands.go:6
StructB
kong_test.go:1385
InterfaceBeforeApply
BeforeApply is a documentation-only interface describing hooks that run before values are set.
hooks.go:16
InterfaceBeforeReset
BeforeReset is a documentation-only interface describing hooks that run before defaults values are applied.
hooks.go:4
InterfaceBeforeResolve
BeforeResolve is a documentation-only interface describing hooks that run before resolvers are applied.
hooks.go:10
InterfaceBoolMapper
A BoolMapper is a Mapper to a value that is a boolean. This is used solely for formatting help.
mapper.go:131
InterfaceBoolMapperExt
BoolMapperExt allows a Mapper to dynamically determine if a value is a boolean.
mapper.go:137
InterfaceBoolMapperValue
BoolMapperValue may be implemented by fields in order to provide custom mappings for boolean values.
mapper.go:51
StructBuildCmd
_examples/docker/commands.go:21
StructCLI
mapper_test.go:338
StructCLI
mapper_windows_test.go:29
StructCLI
tag_test.go:117
StructCLI
kong_test.go:979
StructCLI
defaults_test.go:11
StructCLI
_examples/docker/main.go:33
StructCli
resolver_test.go:235
StructClientA
options_test.go:143
StructClientB
options_test.go:144
StructCommand
tag_test.go:170
StructCommitCmd
_examples/docker/commands.go:29
StructConfig
kong_test.go:906
TypeAliasConfigFlag
ConfigFlag uses the configured (via kong.Configuration(loader)) configuration loader to load configuration from a file specified by a flag. Use this
util.go:13
FuncTypeConfigurationLoader
ConfigurationLoader is a function that builds a resolver from a file.
options.go:450
StructConnection
options_test.go:142
StructContext
Context contains the current parse context.
context.go:81
StructCpCmd
_examples/docker/commands.go:37
StructCreateCmd
_examples/docker/commands.go:45
StructDBConfig
kong_test.go:2823
StructDecodeCLI
mapper_test.go:819
StructDecodeContext
DecodeContext is passed to a Mapper's Decode(). It contains the Value being decoded into and the Scanner to parse from.
mapper.go:29
StructDecodeFoo
mapper_test.go:823
StructDeployCmd
_examples/docker/commands.go:53
StructDiffCmd
_examples/docker/commands.go:61
StructEmbed
resolver_test.go:232
StructEmbed
kong_test.go:1042
StructEmbedded
tag_test.go:156
StructEmbedded
kong_test.go:1005
StructEmbedded2
kong_test.go:1009
StructEmbeddedAfterApplyLeaf
kong_test.go:2749
StructEmbeddedAfterApplyMiddle
kong_test.go:2758
StructEmbeddedAfterApplyRoot
kong_test.go:2762
StructEmbeddedCallback
kong_test.go:2660
StructEmbeddedRoot
kong_test.go:2691
StructEventsCmd
_examples/docker/commands.go:69
StructExecCmd
_examples/docker/commands.go:77
InterfaceExitCoder
ExitCoder is an interface that may be implemented by an error value to provide an integer exit code. The method ExitCode should return an integer that
exit.go:16
StructExportCmd
_examples/docker/commands.go:85
TypeAliasFileContentFlag
FileContentFlag is a flag value that loads a file's contents into its value.
mapper.go:921
StructFlag
A Flag represents a command-line flag.
model.go:422
StructFoo
kong_test.go:2525
StructGlobals
_examples/docker/main.go:10
StructGroup
Group holds metadata about a command or flag group used when printing help.
model.go:478
TypeAliasGroups
Groups associates `group` field tags with group metadata. This option is used to simplify Kong tags while providing rich group information such as ti
options.go:361
FuncTypeHelpIndenter
HelpIndenter is used to indent new layers in the help tree.
help.go:88
StructHelpOptions
HelpOptions for HelpPrinters.
help.go:33
FuncTypeHelpPrinter
HelpPrinter is used to print context-sensitive help.
help.go:91
InterfaceHelpProvider
HelpProvider can be implemented by commands/args to provide detailed help.
help.go:77
FuncTypeHelpValueFormatter
HelpValueFormatter is used to format the help text of flags and positional arguments.
help.go:94
StructHistoryCmd
_examples/docker/commands.go:93
InterfaceIgnoreDefault
IgnoreDefault can be implemented by flags that want to be applied before any default commands.
context.go:588
StructImagesCmd
_examples/docker/commands.go:101
StructImportCmd
_examples/docker/commands.go:109
StructInfoCmd
_examples/docker/commands.go:117
StructInspectCmd
_examples/docker/commands.go:125
StructKillCmd
_examples/docker/commands.go:133
StructKong
Kong is the main parser type.
kong.go:43
StructLoadCmd
_examples/docker/commands.go:141
StructLoginCmd
_examples/docker/commands.go:149
StructLogoutCmd
_examples/docker/commands.go:157
StructLogsCmd
_examples/docker/commands.go:165
StructLsCmd
kong_test.go:1398
InterfaceMapper
A Mapper represents how a field is mapped from command-line values to Go. Mappers can be associated with concrete fields via pointer, reflect.Type, r
mapper.go:118
InterfaceMapperValue
MapperValue may be implemented by fields in order to provide custom mapping. Mappers may additionally implement PlaceHolderProvider to provide custom
mapper.go:46
StructNamedFileContentFlag
NamedFileContentFlag is a flag value that loads a file's contents and filename into its value.
mapper.go:894
StructNestedAnonymous
resolver_test.go:122
StructNestedCallback
kong_test.go:2682
FuncTypeNext
Next should be called by Visitor to proceed with the walk. The walk will terminate if "err" is non-nil.
visit.go:10
StructNode
Node is a branch in the CLI. ie. a command or positional argument.
model.go:41
TypeAliasNodeType
NodeType is an enum representing the type of a Node.
model.go:31
InterfaceOption
An Option applies optional changes to the Kong application.
options.go:16
next →1–100 of 229, ranked by callers