aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-fetch
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-10 17:48:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-10 17:48:03 +0200
commitddf8c2b62fa09eb765afc0c093d0d8908f7b69e4 (patch)
tree5956e674e0cb368061a9a9eb6d8bf742f96ffa75 /bpkg/pkg-fetch
parentec931aa6550b47461e92062a703e6ef9f4c24b17 (diff)
Complete build command
Diffstat (limited to 'bpkg/pkg-fetch')
-rw-r--r--bpkg/pkg-fetch23
1 files changed, 23 insertions, 0 deletions
diff --git a/bpkg/pkg-fetch b/bpkg/pkg-fetch
index 1f25c82..7cfd214 100644
--- a/bpkg/pkg-fetch
+++ b/bpkg/pkg-fetch
@@ -5,13 +5,36 @@
#ifndef BPKG_PKG_FETCH
#define BPKG_PKG_FETCH
+#include <bpkg/manifest> // version
+
#include <bpkg/types>
+#include <bpkg/forward> // transaction, selected_package
#include <bpkg/pkg-fetch-options>
namespace bpkg
{
void
pkg_fetch (const pkg_fetch_options&, cli::scanner& args);
+
+ // Fetch the package as an archive file and commit the transaction.
+ //
+ shared_ptr<selected_package>
+ pkg_fetch (const common_options&,
+ const dir_path& configuration,
+ transaction&,
+ path archive,
+ bool replace,
+ bool purge);
+
+ // Fetch the package from a repository and commit the transaction.
+ //
+ shared_ptr<selected_package>
+ pkg_fetch (const common_options&,
+ const dir_path& configuration,
+ transaction&,
+ string name,
+ version,
+ bool replace);
}
#endif // BPKG_PKG_FETCH