mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdJoin: Obeys verbose mode
This commit is contained in:
parent
a3439a3ef8
commit
1b11fbb43c
1 changed files with 2 additions and 4 deletions
|
@ -69,9 +69,6 @@ int CmdJoin (
|
|||
Interval first = tracked[tracked.size () - first_id];
|
||||
Interval second = tracked[tracked.size () - second_id];
|
||||
|
||||
std::cout << "# @" << first_id << " first " << first.dump () << "\n";
|
||||
std::cout << "# @" << second_id << " second " << second.dump () << "\n";
|
||||
|
||||
// TODO Require confirmation if intervals are not consecutive.
|
||||
// TODO Require confirmation if tags don't match.
|
||||
|
||||
|
@ -82,7 +79,8 @@ int CmdJoin (
|
|||
database.modifyInterval (first, combined);
|
||||
|
||||
// Feedback.
|
||||
std::cout << "Joined @" << ids[0] << " and @" << ids[1] << '\n';
|
||||
if (rules.getBoolean ("verbose"))
|
||||
std::cout << "Joined @" << ids[0] << " and @" << ids[1] << '\n';
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue