aboutsummaryrefslogtreecommitdiff
path: root/bpkg/utility.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-02-12 17:30:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-02-12 17:34:55 +0300
commitb7763416f8a1e4940a10336d3a8b9fbbb879f414 (patch)
tree31f1bc7427181aa81984a639d998ca4e99058199 /bpkg/utility.hxx
parentecb1efeebaa5597bee4cfdaab7bff4007b73127d (diff)
Clone and fetch git repositories
Diffstat (limited to 'bpkg/utility.hxx')
-rw-r--r--bpkg/utility.hxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/bpkg/utility.hxx b/bpkg/utility.hxx
index f4f8690..05835b0 100644
--- a/bpkg/utility.hxx
+++ b/bpkg/utility.hxx
@@ -52,8 +52,10 @@ namespace bpkg
// Widely-used paths.
//
- extern const dir_path bpkg_dir; // .bpkg/
- extern const dir_path certs_dir; // .bpkg/certs/
+ extern const dir_path bpkg_dir; // .bpkg/
+ extern const dir_path certs_dir; // .bpkg/certificates/
+ extern const dir_path repos_dir; // .bpkg/repositories/
+ extern const dir_path current_dir; // ./
// Temporary directory facility.
//
@@ -63,6 +65,8 @@ namespace bpkg
// you don't need to call init_tmp() explicitly except for certain special
// commands (like cfg-create).
//
+ extern dir_path temp_dir;
+
auto_rmfile
tmp_file (const string& prefix);
@@ -109,6 +113,9 @@ namespace bpkg
uint16_t verbosity = 3,
bool ignore_error = false);
+ void
+ mv (const dir_path& from, const dir_path& to);
+
// Process.
//
// By default the process command line is printed for verbosity >= 2