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

Function kindLabel

script/ghmock/schemacmd.go:206–221  ·  view source on GitHub ↗
(k ast.DefinitionKind)

Source from the content-addressed store, hash-verified

204}
205
206func kindLabel(k ast.DefinitionKind) string {
207 switch k {
208 case ast.Object:
209 return "an object"
210 case ast.Interface:
211 return "an interface"
212 case ast.Union:
213 return "a union"
214 case ast.Enum:
215 return "an enum"
216 case ast.InputObject:
217 return "an input object"
218 default:
219 return "a scalar"
220 }
221}
222
223// scalarJSON says how a scalar appears in a JSON response.
224func scalarJSON(name string) string {

Callers 2

describeGraphQLFunction · 0.85
writeGraphQLTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected