mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Small fixes
Updated CMakeLists.txt Updated README.md Updated bin/gdpm-test.sh Changed some constants defined in constants.hpp Added GDPM_TIMESTAMP_FORMAT configurable macro
This commit is contained in:
parent
1893c7c36b
commit
2b250d9a2d
11 changed files with 288 additions and 120 deletions
|
|
@ -15,7 +15,7 @@ namespace gdpm::package_manager{
|
|||
extern CURL *curl;
|
||||
extern CURLcode res;
|
||||
extern config::config_context config;
|
||||
|
||||
|
||||
struct package_info{
|
||||
size_t asset_id;
|
||||
std::string type;
|
||||
|
|
@ -34,6 +34,7 @@ namespace gdpm::package_manager{
|
|||
std::string download_hash;
|
||||
bool is_installed;
|
||||
std::string install_path;
|
||||
std::vector<package_info> dependencies;
|
||||
};
|
||||
|
||||
struct cxxargs{
|
||||
|
|
@ -64,8 +65,7 @@ namespace gdpm::package_manager{
|
|||
GDPM_DLL_EXPORT void remove_packages(const std::vector<std::string>& package_titles);
|
||||
GDPM_DLL_EXPORT void update_packages(const std::vector<std::string>& package_titles);
|
||||
GDPM_DLL_EXPORT void search_for_packages(const std::vector<std::string>& package_titles);
|
||||
GDPM_DLL_EXPORT void list_installed_packages();
|
||||
GDPM_DLL_EXPORT void read_package_contents(const std::string& package_title);
|
||||
GDPM_DLL_EXPORT void list_information(const std::vector<std::string>& opts);
|
||||
GDPM_DLL_EXPORT void clean_temporary(const std::vector<std::string>& package_titles);
|
||||
GDPM_DLL_EXPORT void link_packages(const std::vector<std::string>& package_titles, const std::vector<std::string>& paths);
|
||||
GDPM_DLL_EXPORT void clone_packages(const std::vector<std::string>& package_titles, const std::vector<std::string>& paths);
|
||||
|
|
@ -78,6 +78,8 @@ namespace gdpm::package_manager{
|
|||
GDPM_DLL_EXPORT void run_command(command_e command, const std::vector<std::string>& package_titles, const std::vector<std::string>& opts);
|
||||
GDPM_DLL_EXPORT void print_package_list(const rapidjson::Document& json);
|
||||
GDPM_DLL_EXPORT void print_package_list(const std::vector<package_info>& packages);
|
||||
GDPM_DLL_EXPORT void print_remote_sources();
|
||||
|
||||
GDPM_DLL_EXPORT std::vector<package_info> synchronize_database(const std::vector<std::string>& package_titles);
|
||||
GDPM_DLL_EXPORT std::vector<std::string> resolve_dependencies(const std::vector<std::string>& package_titles);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue