CmdContext: Expand information provided in 'context show'

This commit is contained in:
Tomas Babej 2021-04-03 01:49:05 -04:00
parent a558ffcd42
commit 062878022b

View file

@ -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", "")
);
}
}