depzip-lib v0.4.3
Package archiver
Loading...
Searching...
No Matches
package_info.hpp
Go to the documentation of this file.
1#pragma once
2#include <string_view>
3#include <vector>
4
5namespace depzip {
7struct PackageInfo {
13 std::string_view uri;
14
16 std::string_view branch{};
18 std::string_view subdir{};
20 std::vector<std::string_view> remove_subpaths{};
22 std::string_view custom_command{};
23};
24} // namespace depzip
Definition config.hpp:4
Package description.
Definition package_info.hpp:7
std::string_view branch
Git commit-ish to checkout.
Definition package_info.hpp:16
std::string_view subdir
Subdirectory to clone to, can be empty.
Definition package_info.hpp:18
std::string_view uri
Location / identifier of a specific repository Values of the form 'a/b' get appended to the default h...
Definition package_info.hpp:13
std::string_view custom_command
Custom shell command(s) to run, eg 'cmake -P script.cmake'.
Definition package_info.hpp:22
std::vector< std::string_view > remove_subpaths
Sub-paths to remove after cloning (eg docs, examples).
Definition package_info.hpp:20