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

Function rmrf

script/build.go:219–228  ·  view source on GitHub ↗
(targets ...string)

Source from the content-addressed store, hash-verified

217}
218
219func rmrf(targets ...string) error {
220 args := append([]string{"rm", "-rf"}, targets...)
221 announce(args...)
222 for _, target := range targets {
223 if err := os.RemoveAll(target); err != nil {
224 return err
225 }
226 }
227 return nil
228}
229
230func announce(args ...string) {
231 fmt.Println(shellInspect(args))

Callers 1

build.goFile · 0.85

Calls 1

announceFunction · 0.85

Tested by

no test coverage detected