MCPcopy Create free account

hub / github.com/alecthomas/kong / functions

Functions738 in github.com/alecthomas/kong

↓ 1 callersFunctioncheckMissingPositionals
If we're missing any positionals and they're required, return an error.
context.go:1026
↓ 1 callersFunctioncheckOverlappingXorAnd
(k *Kong)
kong.go:181
↓ 1 callersFunctioncheckPassthroughArg
(target reflect.Value)
context.go:1086
↓ 1 callersFunctioncheckXorDuplicatedAndAndMissing
(paths []*Path)
context.go:1096
↓ 1 callersFunctioncheckXorDuplicates
(paths []*Path)
context.go:1110
↓ 1 callersFunctioncollectCommandGroups
(nodes []*Node)
help.go:342
↓ 1 callersFunctioncollectFlagGroups
(flags [][]*Flag)
help.go:290
↓ 1 callersFunctioncounterMapper
()
mapper.go:790
↓ 1 callersFunctiondurationDecoder
()
mapper.go:328
↓ 1 callersMethodendParsing
()
context.go:377
↓ 1 callersFunctionexistingDirMapper
(r *Registry)
mapper.go:684
↓ 1 callersFunctionexistingFileMapper
(r *Registry)
mapper.go:648
↓ 1 callersFunctionexitCodeFromError
exitCodeFromError returns the exit code for the given error. If err implements the exitCoder interface, the ExitCode method is called. Otherwise, exit
exit.go:23
↓ 1 callersMethodextraFlags
Provide additional builtin flags, if any.
kong.go:293
↓ 1 callersFunctionfileContentMapper
(r *Registry)
mapper.go:718
↓ 1 callersFunctionfileMapper
(r *Registry)
mapper.go:617
↓ 1 callersMethodfindNode
(key reflect.Value)
model.go:80
↓ 1 callersFunctionflattenedFields
(v reflect.Value, ptag *Tag)
build.go:56
↓ 1 callersFunctionflipBoolValue
(value reflect.Value)
context.go:737
↓ 1 callersFunctionfloatDecoder
(bits int)
mapper.go:428
↓ 1 callersFunctionformatEnvs
(envs []string)
help.go:580
↓ 1 callersFunctionformatFlag
haveShort will be true if there are short flags present at all in the help. Useful for column alignment.
help.go:502
↓ 1 callersFunctiongetExplicitMethod
(value reflect.Value, name string)
callbacks.go:131
↓ 1 callersMethodgetMethods
(value reflect.Value, name string)
kong.go:389
↓ 1 callersFunctiongetRequiredAndGroupMap
(flags []*Flag)
context.go:970
↓ 1 callersFunctiongetValidators
getValidators returns validators implemented by v and by any embedded fields, matching how hooks are discovered (see getMethods).
context.go:1207
↓ 1 callersFunctionguessWidth
(w io.Writer)
guesswidth.go:7
↓ 1 callersFunctionhandle
Handle a single SSH interactive connection.
_examples/server/main.go:22
↓ 1 callersFunctionhandlerWithError
(handle func(log *log.Logger, s ssh.Session) error)
_examples/server/main.go:115
↓ 1 callersMethodhead
()
kong.go:212
↓ 1 callersFunctionintDecoder
(bits int)
mapper.go:370
↓ 1 callersFunctionisExplicitMethod
(t reflect.Type, name string)
callbacks.go:141
↓ 1 callersFunctionisUnknownFlagError
(err error)
context.go:808
↓ 1 callersFunctionisValidatable
(v reflect.Value)
context.go:1189
↓ 1 callersFunctionlevenshtein
Copied from https://github.com/daviddengcn/go-algs/blob/fe23fabd9d0670e4675326040ba7c285c7117b4c/ed/ed.go#L31 License: https://github.com/daviddengcn/
levenshtein.go:7
↓ 1 callersFunctionmapDecoder
(r *Registry)
mapper.go:458
↓ 1 callersFunctionmaybeGetSignature
(t reflect.Type)
tag.go:427
↓ 1 callersMethodmaybeSelectDefault
End of the line, check for a default command, but only if we're not displaying help, otherwise we'd only ever display the help for the default command
context.go:594
↓ 1 callersFunctionmin
(a, b int)
levenshtein.go:34
↓ 1 callersFunctionnewFunctionBinding
newFunctionBinding builds a binding with a function that will return a value of the target type. The function signature must be func(...) (T, error)
callbacks.go:38
↓ 1 callersMethodparseFlag
(flags []*Flag, match string)
context.go:753
↓ 1 callersFunctionparseStructTagItems
(tag reflect.StructTag)
tag.go:169
↓ 1 callersFunctionparseTag
(parent reflect.Value, ft reflect.StructField)
tag.go:213
↓ 1 callersFunctionparseTagString
(s string)
tag.go:198
↓ 1 callersFunctionpathMapper
(r *Registry)
mapper.go:582
↓ 1 callersMethodpop
()
kong.go:213
↓ 1 callersFunctionprintApp
(w *helpWriter, app *Application)
help.go:142
↓ 1 callersFunctionprintCommand
(w *helpWriter, app *Application, cmd *Command)
help.go:158
↓ 1 callersFunctionprintCommandSummary
(w *helpWriter, cmd *Command)
help.go:373
↓ 1 callersMethodpush
(vars Vars)
kong.go:214
↓ 1 callersFunctionreflectValueIsZero
This is directly from the Go 1.13 source code.
model.go:489
↓ 1 callersFunctionremoveIgnored
(fields []flattenedField, ignored map[string]bool)
build.go:119
↓ 1 callersMethodselectedValues
selectedValues returns the set of values attached to nodes on the traced command path.
context.go:365
↓ 1 callersFunctionsiftStrings
(ss []string, filter func(s string) bool)
options.go:506
↓ 1 callersFunctionsnakeCase
(name string)
resolver.go:65
↓ 1 callersFunctiontimeDecoder
()
mapper.go:351
↓ 1 callersMethodtrace
nolint:maintidx
context.go:393
↓ 1 callersFunctionuintDecoder
(bits int)
mapper.go:399
↓ 1 callersFunctionurlMapper
()
mapper.go:831
↓ 1 callersFunctionvalidatePositionalArguments
(node *Node)
build.go:228
↓ 1 callersFunctionvisitNodeChildren
(node *Node, visitor Visitor)
visit.go:36
↓ 1 callersFunctionwriteCommandList
(cmds []*Node, iw *helpWriter)
help.go:248
↓ 1 callersFunctionwriteCommandTree
(w *helpWriter, node *Node)
help.go:271
↓ 1 callersFunctionwriteCompactCommandList
(cmds []*Node, iw *helpWriter)
help.go:260
↓ 1 callersFunctionwriteFlags
(w *helpWriter, groups [][]*Flag)
help.go:445
↓ 1 callersFunctionwritePositionals
(w *helpWriter, args []*Positional)
help.go:437
MethodAfterApply
This is not the correct signature - see README for details.
hooks.go:24
MethodAfterApply
(ctx *hookContext)
kong_test.go:540
MethodAfterApply
(ctx *hookContext)
kong_test.go:555
MethodAfterApply
(cli *cliWithHook)
kong_test.go:1089
MethodAfterApply
(ctx *kong.Context)
kong_test.go:1099
MethodAfterApply
()
kong_test.go:2666
MethodAfterApply
()
kong_test.go:2677
MethodAfterApply
()
kong_test.go:2686
MethodAfterApply
()
kong_test.go:2697
MethodAfterApply
()
kong_test.go:2729
MethodAfterApply
()
kong_test.go:2753
MethodAfterApply
()
kong_test.go:2786
MethodAfterRun
This is not the correct signature - see README for details. AfterRun is called after Run() returns.
hooks.go:31
MethodAfterRun
()
kong_test.go:2620
MethodApply
Apply options to Kong as a configuration option.
help.go:71
MethodApply
(k *Kong)
options.go:23
MethodApply
Apply lets Vars act as an Option.
options.go:31
MethodApply
(k *Kong)
options.go:363
MethodApply
Apply traced context to the target grammar.
context.go:709
MethodApply
(k *kong.Kong)
kong_test.go:1913
MethodBeforeApply
This is not the correct signature - see README for details.
hooks.go:18
MethodBeforeApply
(ctx *hookContext)
kong_test.go:535
MethodBeforeApply
(ctx *hookContext)
kong_test.go:550
MethodBeforeApply
(app *kong.Kong, vars kong.Vars)
_examples/docker/main.go:27
MethodBeforeReset
(ctx *Context)
help.go:21
MethodBeforeReset
This is not the correct signature - see README for details.
hooks.go:6
MethodBeforeReset
BeforeReset writes the version variable and terminates with a 0 exit status.
util.go:33
MethodBeforeResolve
This is not the correct signature - see README for details.
hooks.go:12
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:148
MethodBindTo
BindTo adds a binding to the Context. This will typically have to be called like so: BindTo(impl, (*MyInterface)(nil))
context.go:128
FunctionClearResolvers
ClearResolvers clears all existing resolvers.
options.go:409
← previousnext →201–300 of 738, ranked by callers