mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Verbosity
- Implemented new verbosity token 'new-id' which controls whether newly generated task IDs are reported.
This commit is contained in:
parent
3456a24749
commit
ad55fa2d79
5 changed files with 12 additions and 13 deletions
|
@ -72,9 +72,8 @@ int CmdAdd::execute (std::string& output)
|
|||
context.tdb.add (task);
|
||||
|
||||
// TODO This should be a call in to feedback.cpp.
|
||||
#ifdef FEATURE_NEW_ID
|
||||
output = format (STRING_CMD_ADD_FEEDBACK, context.tdb.nextId ()) + "\n";
|
||||
#endif
|
||||
if (context.verbose ("new-id"))
|
||||
output = format (STRING_CMD_ADD_FEEDBACK, context.tdb.nextId ()) + "\n";
|
||||
|
||||
context.footnote (onProjectChange (task));
|
||||
|
||||
|
|
|
@ -110,7 +110,8 @@ int CmdDuplicate::execute (std::string& output)
|
|||
<< "'.\n";
|
||||
|
||||
// TODO This should be a call in to feedback.cpp.
|
||||
out << format (STRING_CMD_ADD_FEEDBACK, context.tdb.nextId ()) + "\n";
|
||||
if (context.verbose ("new-id"))
|
||||
out << format (STRING_CMD_ADD_FEEDBACK, context.tdb.nextId ()) + "\n";
|
||||
|
||||
context.footnote (onProjectChange (dup));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue