MCPcopy
hub / github.com/cli/cli / rmrf

Function rmrf

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

Source from the content-addressed store, hash-verified

191}
192
193func rmrf(targets ...string) error {
194 args := append([]string{"rm", "-rf"}, targets...)
195 announce(args...)
196 for _, target := range targets {
197 if err := os.RemoveAll(target); err != nil {
198 return err
199 }
200 }
201 return nil
202}
203
204func announce(args ...string) {
205 fmt.Println(shellInspect(args))

Callers 1

build.goFile · 0.85

Calls 1

announceFunction · 0.85

Tested by

no test coverage detected