mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Implemented parallel downloads through CURL multi interface and added purge command
- Update `README.md` file with examples - Fixed error messages showing no or wrong message - Changed the prompt message when installing, removing, etc. - Changed how http::request works - Added `http::multi` class for parallel downloads - Removed separate `concepts.hpp` file TODO: Fix ZIP not extracting after running the `install` command
This commit is contained in:
parent
766eabd5b2
commit
807aa8e5b2
21 changed files with 1158 additions and 758 deletions
|
|
@ -106,18 +106,15 @@ namespace gdpm::config{
|
|||
ParseErrorCode status = doc.Parse(contents.c_str()).GetParseError();
|
||||
|
||||
if(!doc.IsObject()){
|
||||
error error(
|
||||
constants::error::FILE_NOT_FOUND,
|
||||
return log::error_rc(
|
||||
ec::FILE_NOT_FOUND,
|
||||
"Could not load config file."
|
||||
);
|
||||
log::error(error);
|
||||
return error;
|
||||
}
|
||||
|
||||
error error = validate(doc);
|
||||
if(error()){
|
||||
log::error(error);
|
||||
return error;
|
||||
if(error.has_occurred()){
|
||||
return log::error_rc(error);
|
||||
}
|
||||
|
||||
/* Make sure contents were read correctly. */
|
||||
|
|
@ -138,12 +135,10 @@ namespace gdpm::config{
|
|||
);
|
||||
}
|
||||
} else {
|
||||
gdpm::error error(
|
||||
constants::error::INVALID_KEY,
|
||||
return log::error_rc(
|
||||
ec::INVALID_KEY,
|
||||
"Could not read key `remote_sources`."
|
||||
);
|
||||
log::error(error);
|
||||
return error;
|
||||
}
|
||||
}
|
||||
auto _get_value_string = [](Document& doc, const char *property){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue