using convenience function for paying attention to verbosity tokens

This commit is contained in:
sebu06 2021-07-18 20:26:24 +02:00 committed by Tomas Babej
parent bd2ad97ccb
commit 69b34dcef3
9 changed files with 10 additions and 10 deletions

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{