mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-19 19:17:01 -07:00
- Reinitialized submodules - Slightly restructed project - Added more options to `compile.sh` script - Added more utility functions
48 lines
No EOL
933 B
C++
48 lines
No EOL
933 B
C++
#pragma once
|
|
|
|
#include "config.hpp"
|
|
#include "package.hpp"
|
|
#include "package_manager.hpp"
|
|
#include "remote.hpp"
|
|
#include "result.hpp"
|
|
#include <cstdio>
|
|
#include <cxxopts.hpp>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <unordered_map>
|
|
#include <vector>
|
|
|
|
#include <rapidjson/document.h>
|
|
#include <curl/curl.h>
|
|
|
|
namespace gdpm::package_manager {
|
|
extern remote::repository_map remote_sources;
|
|
extern CURL *curl;
|
|
extern CURLcode res;
|
|
extern config::context config;
|
|
|
|
enum class action_e{
|
|
install,
|
|
add,
|
|
remove,
|
|
update,
|
|
search,
|
|
p_export, /* reserved keyword */
|
|
list,
|
|
link,
|
|
clone,
|
|
clean,
|
|
config,
|
|
fetch,
|
|
sync,
|
|
remote,
|
|
ui,
|
|
help,
|
|
none
|
|
};
|
|
|
|
GDPM_DLL_EXPORT error initialize(int argc, char **argv);
|
|
GDPM_DLL_EXPORT error parse_arguments(int argc, char **argv);
|
|
GDPM_DLL_EXPORT error finalize();
|
|
GDPM_DLL_EXPORT void run_command(action_e command, const var_args& args, const var_opts& opts);
|
|
} |