mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Fixed minor issues
- Fixed error message formatting - Fixed setting verbosity levels - Fixed implementation of `replace_first` and `replace_all` - Fixed issue where installing a package would failed because of unescaped single quotes in SQL statement - Fixed error code returned from SQLITE related errors - Fixed verbose flag not being repeatable and set correctly - Fixed some error messages to correctly reflect occuring error - Fixed the prompt asking the user twice and not taking a default input - Added functions to get logging default prefixes - Added `version` command (not implemented yet)
This commit is contained in:
parent
02a4e879a8
commit
c88cb08e03
9 changed files with 126 additions and 121 deletions
|
|
@ -103,8 +103,8 @@ namespace gdpm::utils {
|
|||
std::string trim_right(const std::string& s);
|
||||
std::string trim_right(const std::string& s, const std::string& ref);
|
||||
std::vector<std::string> parse_lines(const std::string& s);
|
||||
std::string replace_first(std::string& s, const std::string& from, const std::string& to);
|
||||
std::string replace_all(std::string& s, const std::string& from, const std::string& to);
|
||||
std::string replace_first(const std::string& s, const std::string& from, const std::string& to);
|
||||
std::string replace_all(const std::string& s, const std::string& from, const std::string& to);
|
||||
int extract_zip(const char *archive, const char *dest, int verbose = 0);
|
||||
std::string prompt_user(const char *message);
|
||||
bool prompt_user_yn(const char *message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue