remove command, which supports dry runs (so does create)
This commit is contained in:
1 parent
0adbe5e0d1
commit
bfffa2dd7f
6 files changed
+98
-13
No files matched your search
@@ -13,6 +13,7 @@ namespace cellar {
|
||||
|
||||
extern bottles::Bottle active_bottle;
|
||||
|
||||
extern bool dryrun;
|
||||
extern bool verbose;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user