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
|
|
@ -63,12 +63,12 @@ namespace gdpm::remote{
|
|||
|
||||
void print_repositories(const config::context& config){
|
||||
const auto &rs = config.remote_sources;
|
||||
if(config.style == config::print_style::list){
|
||||
if(config.style == print::style::list){
|
||||
std::for_each(rs.begin(), rs.end(), [](const string_pair& p){
|
||||
log::println("{}: {}", p.first, p.second);
|
||||
});
|
||||
}
|
||||
else if(config.style == config::print_style::table){
|
||||
else if(config.style == print::style::table){
|
||||
using namespace tabulate;
|
||||
Table table;
|
||||
table.add_row({"Name", "URL"});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue