MCPcopy Index your code
hub / github.com/google/go-github / Run

Method Run

tools/metadata/main.go:125–131  ·  view source on GitHub ↗
(root *rootCmd)

Source from the content-addressed store, hash-verified

123type formatCmd struct{}
124
125func (c *formatCmd) Run(root *rootCmd) error {
126 filename, opsFile, err := root.opsFile()
127 if err != nil {
128 return err
129 }
130 return opsFile.saveFile(filename)
131}
132
133type updateGoCmd struct{}
134

Callers 15

TestRunFunction · 0.45
runCommandFunction · 0.45
Test_normalizedOpNameFunction · 0.45
Test_normalizeDocURLFunction · 0.45
TestUpdateGoFunction · 0.45
runFunction · 0.45
TestRunFunction · 0.45
TestRunFunction · 0.45
TestRunFunction · 0.45
TestRunFunction · 0.45
Test_ParseFormsFunction · 0.45

Calls 2

opsFileMethod · 0.80
saveFileMethod · 0.80

Tested by 15

TestRunFunction · 0.36
Test_normalizedOpNameFunction · 0.36
Test_normalizeDocURLFunction · 0.36
TestUpdateGoFunction · 0.36
TestRunFunction · 0.36
TestRunFunction · 0.36
TestRunFunction · 0.36
TestRunFunction · 0.36
Test_ParseFormsFunction · 0.36
TestBranchRulesFunction · 0.36