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

Method reset

script/ghmock/store.go:274–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272}
273
274func (s *state) reset() error {
275 for _, p := range []string{s.responsesPath(), s.logPath(), s.runsPath()} {
276 if err := os.Remove(p); err != nil && !errors.Is(err, fs.ErrNotExist) {
277 return err
278 }
279 }
280 for _, name := range []string{"git", "config"} {
281 if err := os.RemoveAll(filepath.Join(s.dir, name)); err != nil {
282 return err
283 }
284 }
285 return nil
286}

Callers 2

TestCmdExportFunction · 0.95
cmdResetFunction · 0.80

Calls 5

responsesPathMethod · 0.95
logPathMethod · 0.95
runsPathMethod · 0.95
JoinMethod · 0.80
RemoveMethod · 0.65

Tested by 1

TestCmdExportFunction · 0.76