mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
CmdNews: Version methods should generate all items, regardless of priority
Drop the flag about full/abbreviated report being passed to the version methods. The methods shold just generate the NewsItem objects, the CmdNews::execute will take care of displaying only the ones matching the verbosity level the user selected.
This commit is contained in:
parent
636c8f50e0
commit
f3881ecbbe
2 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ void NewsItem::render () {
|
|||
// - The .by attribute modifier
|
||||
// - Exporting a report
|
||||
// - Multi-day holidays
|
||||
void CmdNews::version2_6_0 (bool full, std::vector<NewsItem>& items) {
|
||||
void CmdNews::version2_6_0 (std::vector<NewsItem>& items) {
|
||||
NewsItem writeable_context (
|
||||
true,
|
||||
"'Writeable' context",
|
||||
|
|
|
@ -45,7 +45,7 @@ class CmdNews : public Command
|
|||
public:
|
||||
CmdNews ();
|
||||
int execute (std::string&);
|
||||
void version2_6_0 (bool, std::vector<NewsItem>&);
|
||||
void version2_6_0 (std::vector<NewsItem>&);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue