aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-fetch
diff options
context:
space:
mode:
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