MCPcopy Create free account

hub / github.com/alecthomas/kong / functions

Functions778 in github.com/alecthomas/kong

↓ 1 callersFunctioncheckMissingChildren
(node *Node)
context.go:1134
↓ 1 callersFunctioncheckMissingFlags
(flags []*Flag)
context.go:1065
↓ 1 callersFunctioncheckMissingPositionals
If we're missing any positionals and they're required, return an error.
context.go:1178
↓ 1 callersFunctioncheckOverlappingXorAnd
(k *Kong)
kong.go:181
↓ 1 callersFunctioncheckPassthroughArg
(target reflect.Value)
context.go:1238
↓ 1 callersFunctioncheckXorDuplicatedAndAndMissing
(paths []*Path)
context.go:1248
↓ 1 callersFunctioncheckXorDuplicates
(paths []*Path)
context.go:1262
↓ 1 callersFunctioncollectCommandGroups
(nodes []*Node)
help.go:342
↓ 1 callersFunctioncollectFlagGroups
(flags [][]*Flag)
help.go:290
↓ 1 callersFunctioncounterMapper
()
mapper.go:800
↓ 1 callersFunctiondurationDecoder
()
mapper.go:332
↓ 1 callersMethodendParsing
()
context.go:478
↓ 1 callersFunctionexistingDirMapper
(r *Registry)
mapper.go:694
↓ 1 callersFunctionexistingFileMapper
(r *Registry)
mapper.go:658
↓ 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:728
↓ 1 callersFunctionfileMapper
(r *Registry)
mapper.go:627
↓ 1 callersMethodfilterLastWins
filterLastWins removes trace occurrences overridden by a later occurrence of another flag in the same lastwins group, as if they had never been given.
context.go:127
↓ 1 callersMethodfindNode
(key reflect.Value)
model.go:80
↓ 1 callersFunctionflagChoiceGroups
(flag *Flag)
context.go:1054
↓ 1 callersFunctionflattenedFields
(v reflect.Value, ptag *Tag)
build.go:56
↓ 1 callersFunctionfloatDecoder
(bits int)
mapper.go:432
↓ 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:1122
↓ 1 callersFunctiongetValidators
getValidators returns validators implemented by v and by any embedded fields, matching how hooks are discovered (see getMethods).
context.go:1359
↓ 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:374
↓ 1 callersFunctionisExplicitMethod
(t reflect.Type, name string)
callbacks.go:141
↓ 1 callersFunctionisNil
(v reflect.Value)
callbacks.go:240
↓ 1 callersFunctionisUnknownFlagError
(err error)
context.go:941
↓ 1 callersFunctionisValidatable
(v reflect.Value)
context.go:1341
↓ 1 callersFunctionlastWinsPeers
lastWinsPeers maps each member of a lastwins group to the other members of its group. Groups are scoped to the node their flags are declared on.
context.go:182
↓ 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:462
↓ 1 callersFunctionmaybeGetSignature
(t reflect.Type)
tag.go:433
↓ 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:726
↓ 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:874
↓ 1 callersFunctionparseStructTagItems
(tag reflect.StructTag)
tag.go:170
↓ 1 callersFunctionparseTag
(parent reflect.Value, ft reflect.StructField)
tag.go:214
↓ 1 callersFunctionparseTagString
(s string)
tag.go:199
↓ 1 callersFunctionpathMapper
(r *Registry)
mapper.go:592
↓ 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:490
↓ 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:466
↓ 1 callersFunctionsiftStrings
(ss []string, filter func(s string) bool)
options.go:506
↓ 1 callersFunctionsnakeCase
(name string)
resolver.go:65
↓ 1 callersFunctiontimeDecoder
()
mapper.go:355
↓ 1 callersMethodtrace
nolint:maintidx
context.go:494
↓ 1 callersFunctionuintDecoder
(bits int)
mapper.go:403
↓ 1 callersFunctionurlMapper
()
mapper.go:854
↓ 1 callersFunctionvalidatePositionalArguments
(node *Node)
build.go:238
↓ 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:657
MethodAfterApply
(ctx *hookContext)
kong_test.go:672
MethodAfterApply
(cli *cliWithHook)
kong_test.go:1237
MethodAfterApply
(ctx *kong.Context)
kong_test.go:1247
MethodAfterApply
()
kong_test.go:3105
MethodAfterApply
()
kong_test.go:3116
MethodAfterApply
()
kong_test.go:3125
MethodAfterApply
()
kong_test.go:3136
MethodAfterApply
()
kong_test.go:3168
MethodAfterApply
()
kong_test.go:3192
MethodAfterApply
()
kong_test.go:3223
MethodAfterApply
()
kong_test.go:3250
MethodAfterRun
This is not the correct signature - see README for details. AfterRun is called after Run() returns.
hooks.go:31
MethodAfterRun
()
kong_test.go:3059
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:846
MethodApply
(k *kong.Kong)
kong_test.go:2352
MethodBeforeApply
This is not the correct signature - see README for details.
hooks.go:18
MethodBeforeApply
(ctx *hookContext)
kong_test.go:652
MethodBeforeApply
(ctx *hookContext)
kong_test.go:667
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
← previousnext →201–300 of 778, ranked by callers