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

Method useVariables

script/ghmock/gqlscaffold.go:66–70  ·  view source on GitHub ↗

useVariables sets the variables gh sent, which @include and @skip read.

(op *ast.OperationDefinition, raw json.RawMessage)

Source from the content-addressed store, hash-verified

64
65// useVariables sets the variables gh sent, which @include and @skip read.
66func (s *gqlScaffolder) useVariables(op *ast.OperationDefinition, raw json.RawMessage) error {
67 var err error
68 s.vars, err = operationVariables(op, raw)
69 return err
70}
71
72func operationVariables(op *ast.OperationDefinition, raw json.RawMessage) (map[string]any, error) {
73 var values map[string]any

Callers 1

scaffoldGraphQLFunction · 0.80

Calls 1

operationVariablesFunction · 0.85

Tested by

no test coverage detected