CmdNews: Add news item about context-specific configuration overrides

This commit is contained in:
Tomas Babej 2021-10-02 09:49:11 -04:00
parent 2af2564fd9
commit 1a79f0b99e
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -416,6 +416,30 @@ void CmdNews::version2_6_0 (std::vector<NewsItem>& items) {
""
);
items.push_back(by_modifier);
/////////////////////////////////////////////////////////////////////////////
// - Context-specific configuration overrides
NewsItem context_config (
false,
"Context-specific configuration overrides",
"",
"",
" Any context can now define context-specific configuration overrides\n"
" via context.<name>.rc.<setting>=<value>.\n",
" This allows the user to customize the behaviour of Taskwarrior in a given context,\n"
" for example, to change the default command in the 'work' context to 'overdue':\n"
"\n"
" $ task config context.work.rc.default.command overdue\n"
"\n"
" Another example would be to ensure that while context 'work' is active, tasks get\n"
" stored in a ~/.worktasks directory:\n"
"\n"
" $ task config context.work.rc.data.location=~/.worktasks",
"",
""
);
items.push_back(context_config);
}
////////////////////////////////////////////////////////////////////////////////