diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-07 15:59:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-07 15:59:37 +0200 |
commit | b1078fdb9fac747c19dbdacd24c2838aae7d9f6b (patch) | |
tree | 3452bab97d91b063ac3cac2cb3d84ae184c21858 /bpkg/utility | |
parent | 8f94aaa067426a259f5396abdaf4945671799b5c (diff) |
Implement cfg-create command
Diffstat (limited to 'bpkg/utility')
-rw-r--r-- | bpkg/utility | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bpkg/utility b/bpkg/utility index 9c6688f..f2c0ab5 100644 --- a/bpkg/utility +++ b/bpkg/utility @@ -9,11 +9,33 @@ namespace bpkg { + // Filesystem. + // bool exists (const path&); bool exists (const dir_path&); + + bool + empty (const dir_path&); + + void + mk (const dir_path&); + + void + mk_p (const dir_path&); + + void + rm_r (const dir_path&, bool dir = true); + + // Process. + // + void + run (const char* const args[]); + + inline void + run (const cstrings& args) {run (args.data ());} } #endif // BPKG_UTILITY |