mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
CmdNews: Add news item about exportable reports
This commit is contained in:
parent
6f60f74739
commit
0d647f0218
1 changed files with 23 additions and 0 deletions
|
@ -335,6 +335,29 @@ void CmdNews::version2_6_0 (std::vector<NewsItem>& items) {
|
|||
""
|
||||
);
|
||||
items.push_back(env_vars);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// - Exporting a particular report
|
||||
|
||||
NewsItem exportable_reports (
|
||||
false,
|
||||
"Exporting a particular report",
|
||||
"",
|
||||
"",
|
||||
" You can now export the tasks listed by a particular report as JSON by simply\n"
|
||||
" calling 'task export <report>'.\n",
|
||||
" The export mirrors the filter and the sort order of the report.",
|
||||
" This feature can be used to quickly process the data displayed in a particular\n"
|
||||
" report using other CLI tools. For example, the following oneliner\n"
|
||||
" \n"
|
||||
" $ task export next | jq '.[].urgency' | datamash mean 1\n"
|
||||
" 3.3455535142857\n"
|
||||
" \n"
|
||||
" combines jq and GNU datamash to compute average urgency of the tasks displayed\n"
|
||||
" in the 'next' report.",
|
||||
""
|
||||
);
|
||||
items.push_back(exportable_reports);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue