mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Major refactor and API changes
- Updated `.gitignore` file - Updated `CMakeLists.txt` to build static exectuable - Changed some `Doxyfile` configurations to build more robust and complete documentation (WIP) - Changed how `remote` works to better reflect `git`'s API (WIP) - Changed how error handling works - Improved `bin/compile.sh` script - Improved `bin/lines.sh` script (kinda) - Removed some instances of `fmt` in favor of `std` string functions - Restructed style for better readibility
This commit is contained in:
parent
ba23299777
commit
5a73651ad1
29 changed files with 1836 additions and 1140 deletions
21
include/remote.hpp
Normal file
21
include/remote.hpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include "constants.hpp"
|
||||
#include "error.hpp"
|
||||
#include "types.hpp"
|
||||
#include <fmt/core.h>
|
||||
#include <unordered_map>
|
||||
#include "config.hpp"
|
||||
|
||||
namespace gdpm::remote{
|
||||
using repo_names = string_list;
|
||||
using repo_urls = string_list;
|
||||
using repository_map = string_map;
|
||||
|
||||
GDPM_DLL_EXPORT error _handle_remote(config::context& config, const args_t& args, const opts_t& opts);
|
||||
GDPM_DLL_EXPORT void set_repositories(config::context& context, const repository_map& repos);
|
||||
GDPM_DLL_EXPORT void add_repositories(config::context& context, const repository_map& repos);
|
||||
GDPM_DLL_EXPORT void remove_respositories(config::context& context, const repo_names& name);
|
||||
GDPM_DLL_EXPORT void move_repository(config::context& context, int old_position, int new_position);
|
||||
GDPM_DLL_EXPORT void print_repositories(const config::context& context);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue