mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Fixed search command not working properly
This commit is contained in:
parent
8a7ada342a
commit
fb7efdd7a4
10 changed files with 143 additions and 120 deletions
|
|
@ -17,12 +17,7 @@ namespace gdpm::package{
|
|||
}
|
||||
|
||||
namespace gdpm::config{
|
||||
enum class print_style{
|
||||
list = 0,
|
||||
table = 1,
|
||||
};
|
||||
|
||||
|
||||
|
||||
struct context{
|
||||
string username;
|
||||
string password;
|
||||
|
|
@ -40,13 +35,13 @@ namespace gdpm::config{
|
|||
bool clean_temporary;
|
||||
|
||||
int verbose = log::INFO;
|
||||
print_style style = print_style::list;
|
||||
print::style style = print::style::list;
|
||||
package::info info;
|
||||
rest_api::request_params rest_api_params;
|
||||
};
|
||||
|
||||
string from_style(const print_style& style);
|
||||
print_style to_style(const string& s);
|
||||
string from_style(const print::style& style);
|
||||
print::style to_style(const string& s);
|
||||
string to_json(const context& config, bool pretty_print = false);
|
||||
error load(std::filesystem::path path, context& config);
|
||||
error save(std::filesystem::path path, const context& config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue