chore: replace removeDirAll with the proper function

This commit is contained in:
tydeu 2021-09-16 21:48:21 -04:00
parent b158f1fd8b
commit 4b7a98bc38

View file

@ -20,12 +20,8 @@ def Package.run (script : String) (args : List String) (self : Package) : IO PUn
else
self.scripts.forM fun name _ => IO.println name
-- Hack since Lean provides no methods to remove directories
def removeDirAll (path : System.FilePath) : IO PUnit :=
Lake.proc {cmd := "rm", args := #["-rf", path.toString]} |>.run
def Package.clean (self : Package) : IO PUnit :=
removeDirAll self.buildDir
IO.FS.removeDirAll self.buildDir
-- # CLI