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

Method preload

script/ghmock/checker.go:102–105  ·  view source on GitHub ↗

preload loads both schemas before gh starts, so a first-time download doesn't happen while gh waits for a response.

()

Source from the content-addressed store, hash-verified

100// preload loads both schemas before gh starts, so a first-time download
101// doesn't happen while gh waits for a response.
102func (c *checker) preload() {
103 _, _ = c.graphQL()
104 _, _ = c.rest()
105}
106
107// schemaFiles describes each schema the checker tried to load.
108func (c *checker) schemaFiles() []schemaFile {

Callers 2

cmdRunFunction · 0.80
testCheckerFunction · 0.80

Calls 2

graphQLMethod · 0.95
restMethod · 0.95

Tested by 1

testCheckerFunction · 0.64