diff --git a/src/commands/CmdAnnotate.cpp b/src/commands/CmdAnnotate.cpp index d91ff71d8..284326283 100644 --- a/src/commands/CmdAnnotate.cpp +++ b/src/commands/CmdAnnotate.cpp @@ -71,7 +71,7 @@ int CmdAnnotate::execute (std::string&) std::map 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) { diff --git a/src/commands/CmdAppend.cpp b/src/commands/CmdAppend.cpp index ee811cd03..077487b4d 100644 --- a/src/commands/CmdAppend.cpp +++ b/src/commands/CmdAppend.cpp @@ -71,7 +71,7 @@ int CmdAppend::execute (std::string&) std::map 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) { diff --git a/src/commands/CmdDelete.cpp b/src/commands/CmdDelete.cpp index 465387305..b6d88effd 100644 --- a/src/commands/CmdDelete.cpp +++ b/src/commands/CmdDelete.cpp @@ -72,8 +72,8 @@ int CmdDelete::execute (std::string&) // Accumulated project change notifications. std::map 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) { diff --git a/src/commands/CmdDenotate.cpp b/src/commands/CmdDenotate.cpp index 4bd1e2634..47400e4e6 100644 --- a/src/commands/CmdDenotate.cpp +++ b/src/commands/CmdDenotate.cpp @@ -88,7 +88,7 @@ int CmdDenotate::execute (std::string&) std::map 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) { diff --git a/src/commands/CmdDone.cpp b/src/commands/CmdDone.cpp index 63ebb8e81..181314950 100644 --- a/src/commands/CmdDone.cpp +++ b/src/commands/CmdDone.cpp @@ -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) { diff --git a/src/commands/CmdModify.cpp b/src/commands/CmdModify.cpp index 6809de9eb..5126e9ebc 100644 --- a/src/commands/CmdModify.cpp +++ b/src/commands/CmdModify.cpp @@ -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) { diff --git a/src/commands/CmdPrepend.cpp b/src/commands/CmdPrepend.cpp index 0f063a53e..f0b094063 100644 --- a/src/commands/CmdPrepend.cpp +++ b/src/commands/CmdPrepend.cpp @@ -71,7 +71,7 @@ int CmdPrepend::execute (std::string&) std::map 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) { diff --git a/src/commands/CmdStart.cpp b/src/commands/CmdStart.cpp index c7ef8ac43..59567ee46 100644 --- a/src/commands/CmdStart.cpp +++ b/src/commands/CmdStart.cpp @@ -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) { diff --git a/src/commands/CmdStop.cpp b/src/commands/CmdStop.cpp index 17acd6774..25824bb79 100644 --- a/src/commands/CmdStop.cpp +++ b/src/commands/CmdStop.cpp @@ -68,7 +68,7 @@ int CmdStop::execute (std::string&) std::map 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) {