MCPcopy
hub / github.com/cli/cli / getFilesToRemove

Function getFilesToRemove

pkg/cmd/gist/edit/edit.go:432–441  ·  view source on GitHub ↗
(gist gistToUpdate, filename string)

Source from the content-addressed store, hash-verified

430}
431
432func getFilesToRemove(gist gistToUpdate, filename string) (map[string]*gistFileToUpdate, error) {
433 if _, found := gist.Files[filename]; !found {
434 return nil, fmt.Errorf("gist has no file %q", filename)
435 }
436
437 gist.Files[filename] = nil
438 return map[string]*gistFileToUpdate{
439 filename: nil,
440 }, nil
441}

Callers 1

editRunFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected