From 062878022b10da288079abafe76cf659c48c3c46 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 3 Apr 2021 01:49:05 -0400 Subject: [PATCH] CmdContext: Expand information provided in 'context show' --- src/commands/CmdContext.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/CmdContext.cpp b/src/commands/CmdContext.cpp index c7c8b76fd..7fc9e00db 100644 --- a/src/commands/CmdContext.cpp +++ b/src/commands/CmdContext.cpp @@ -324,8 +324,12 @@ void CmdContext::showContext (std::stringstream& out) out << "No context is currently applied.\n"; else { - std::string currentFilter = Context::getContext ().config.get ("context." + currentContext); - out << format ("Context '{1}' with filter '{2}' is currently applied.\n", currentContext, currentFilter); + out << format ( + "Context '{1}' with \n\n* read filter: '{2}'\n* write filter: '{3}'\n\nis currently applied.\n", + currentContext, + Context::getContext ().getTaskContext("read", ""), + Context::getContext ().getTaskContext("write", "") + ); } }