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

Function deprecationReason

script/ghmock/introspection.go:397–406  ·  view source on GitHub ↗
(dirs ast.DirectiveList)

Source from the content-addressed store, hash-verified

395}
396
397func deprecationReason(dirs ast.DirectiveList) any {
398 d := dirs.ForName("deprecated")
399 if d == nil {
400 return nil
401 }
402 if a := d.Arguments.ForName("reason"); a != nil {
403 return a.Value.Raw
404 }
405 return "No longer supported"
406}
407
408// optional turns an empty description into null, as GitHub returns it.
409func optional(text string) any {

Callers 3

resolveMethod · 0.85
resolveMethod · 0.85
resolveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected