mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdContext: Expand information provided in 'context show'
This commit is contained in:
parent
a558ffcd42
commit
062878022b
1 changed files with 6 additions and 2 deletions
|
@ -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", "")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue