MCPcopy Create free account
hub / github.com/cli/cli / introArgs

Function introArgs

script/ghmock/introspection.go:344–353  ·  view source on GitHub ↗
(defs ast.ArgumentDefinitionList, args map[string]any)

Source from the content-addressed store, hash-verified

342}
343
344func introArgs(defs ast.ArgumentDefinitionList, args map[string]any) []introObject {
345 includeDeprecated, _ := args["includeDeprecated"].(bool)
346 list := []introObject{}
347 for _, a := range defs {
348 if includeDeprecated || !deprecated(a.Directives) {
349 list = append(list, introInputValue{a.Name, a.Description, a.Type, a.DefaultValue, a.Directives})
350 }
351 }
352 return list
353}
354
355type introEnumValue struct{ v *ast.EnumValueDefinition }
356

Callers 2

resolveMethod · 0.85
resolveMethod · 0.85

Calls 1

deprecatedFunction · 0.85

Tested by

no test coverage detected