mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
using convenience function for paying attention to verbosity tokens
This commit is contained in:
parent
bd2ad97ccb
commit
69b34dcef3
9 changed files with 10 additions and 10 deletions
|
@ -71,7 +71,7 @@ int CmdAnnotate::execute (std::string&)
|
|||
std::map <std::string, std::string> projectChanges;
|
||||
|
||||
if(filtered.size() > 1) {
|
||||
std::cout << "This command will alter " << format(filtered.size()) << " tasks." << std::endl;
|
||||
feedback_affected("This command will alter {1} tasks.", filtered.size());
|
||||
}
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
|
@ -71,7 +71,7 @@ int CmdAppend::execute (std::string&)
|
|||
std::map <std::string, std::string> projectChanges;
|
||||
|
||||
if(filtered.size() > 1) {
|
||||
std::cout << "This command will alter " << format(filtered.size()) << " tasks." << std::endl;
|
||||
feedback_affected("This command will alter {1} tasks.", filtered.size());
|
||||
}
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
|
@ -72,8 +72,8 @@ int CmdDelete::execute (std::string&)
|
|||
// Accumulated project change notifications.
|
||||
std::map <std::string, std::string> projectChanges;
|
||||
|
||||
if(filtered.size() > 1) {
|
||||
std::cout << "This command will alter " << format(filtered.size()) << " tasks." << std::endl;
|
||||
if(filtered.size() > 1) {
|
||||
feedback_affected("This command will alter {1} tasks.", filtered.size());
|
||||
}
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
|
@ -88,7 +88,7 @@ int CmdDenotate::execute (std::string&)
|
|||
std::map <std::string, std::string> projectChanges;
|
||||
|
||||
if(filtered.size() > 1) {
|
||||
std::cout << "This command will alter " << format(filtered.size()) << " tasks." << std::endl;
|
||||
feedback_affected("This command will alter {1} tasks.", filtered.size());
|
||||
}
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
|
@ -71,7 +71,7 @@ int CmdDone::execute (std::string&)
|
|||
Task& lowest = filtered.front();
|
||||
|
||||
if(filtered.size() > 1) {
|
||||
std::cout << "This command will alter " << format(filtered.size()) << " tasks." << std::endl;
|
||||
feedback_affected("This command will alter {1} tasks.", filtered.size());
|
||||
}
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
|
@ -72,7 +72,7 @@ int CmdModify::execute (std::string&)
|
|||
|
||||
auto count = 0;
|
||||
if(filtered.size() > 1) {
|
||||
std::cout << "This command will alter " << format(filtered.size()) << " tasks." << std::endl;
|
||||
feedback_affected("This command will alter {1} tasks.", filtered.size());
|
||||
}
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
|
@ -71,7 +71,7 @@ int CmdPrepend::execute (std::string&)
|
|||
std::map <std::string, std::string> projectChanges;
|
||||
|
||||
if(filtered.size() > 1) {
|
||||
std::cout << "This command will alter " << format(filtered.size()) << " tasks." << std::endl;
|
||||
feedback_affected("This command will alter {1} tasks.", filtered.size());
|
||||
}
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
|
@ -70,7 +70,7 @@ int CmdStart::execute (std::string&)
|
|||
|
||||
bool nagged = false;
|
||||
if(filtered.size() > 1) {
|
||||
std::cout << "This command will alter " << format(filtered.size()) << " tasks." << std::endl;
|
||||
feedback_affected("This command will alter {1} tasks.", filtered.size());
|
||||
}
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
|
@ -68,7 +68,7 @@ int CmdStop::execute (std::string&)
|
|||
std::map <std::string, std::string> projectChanges;
|
||||
|
||||
if(filtered.size() > 1) {
|
||||
std::cout << "This command will alter " << format(filtered.size()) << " tasks." << std::endl;
|
||||
feedback_affected("This command will alter {1} tasks.", filtered.size());
|
||||
}
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue