remove command, which supports dry runs (so does create)

This commit is contained in:
Nicholas O'Connor
2017-03-27 22:14:41 -07:00
parent 0adbe5e0d1
commit bfffa2dd7f
6 changed files with 98 additions and 13 deletions

View File

@@ -13,6 +13,7 @@ namespace cellar {
extern bottles::Bottle active_bottle;
extern bool dryrun;
extern bool verbose;
}

View File

@@ -9,9 +9,14 @@ using namespace std;
namespace cellar {
namespace fs {
typedef void (*CopyCallbackFunc)(string,string);
typedef void (*RemoveCallbackFunc)(string);
extern vector<string> listdir(string path);
extern bool recursive_copy(string, string);
extern bool recursive_remove(string);
extern bool recursive_copy(string, string, CopyCallbackFunc);
extern bool recursive_remove(string, RemoveCallbackFunc);
}
}