aboutsummaryrefslogtreecommitdiff
path: root/src/output/console_query_task.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-07 21:28:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-07 21:28:26 +0000
commite15f518956383d4dc22bee5c13939f8de247a46d (patch)
treed1760116d2e5e29a7f47c3504319d13bd3e8f48a /src/output/console_query_task.cc
parent8294cd0acad913897cb79aba7d94144254fdb4f3 (diff)
downloadpaludis-e15f518956383d4dc22bee5c13939f8de247a46d.tar.gz
paludis-e15f518956383d4dc22bee5c13939f8de247a46d.tar.xz
Add Map<string, string> keys
Diffstat (limited to 'src/output/console_query_task.cc')
-rw-r--r--src/output/console_query_task.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/output/console_query_task.cc b/src/output/console_query_task.cc
index 94bf3c578..3fee15652 100644
--- a/src/output/console_query_task.cc
+++ b/src/output/console_query_task.cc
@@ -365,6 +365,24 @@ namespace
}
}
+ void visit(const MetadataCollectionKey<Map<std::string, std::string> > & k)
+ {
+ if (k.type() == type)
+ {
+ ColourFormatter formatter;
+ if (task->want_raw())
+ {
+ task->output_left_column(k.raw_name() + ":", in);
+ task->output_right_column(k.pretty_print_flat(formatter));
+ }
+ else
+ {
+ task->output_left_column(k.human_name() + ":", in);
+ task->output_right_column(k.pretty_print_flat(formatter));
+ }
+ }
+ }
+
void visit(const MetadataCollectionKey<Sequence<std::string> > & k)
{
if (k.type() == type)