Verbosity
- Added 'affected' verbosity token. - Deprecated 'rc.echo.command'. - Updated config defaults. - Labelled all deprecated 'echo.command' references with '// Deprecated 2.0' - Added unit tests to start the verbosity testing. Not complete. - Updated taskrc.5 man page.
This commit is contained in:
@@ -112,8 +112,8 @@ int CmdDelete::execute (std::string& output)
|
||||
context.tdb2.modify (*sibling);
|
||||
++count;
|
||||
|
||||
// TODO Feedback.
|
||||
if (context.config.getBoolean ("echo.command"))
|
||||
if (context.verbose ("affected") ||
|
||||
context.config.getBoolean ("echo.command")) // Deprecated 2.0
|
||||
out << format (STRING_CMD_DELETE_RECURRING,
|
||||
sibling->id,
|
||||
sibling->get ("description"))
|
||||
@@ -156,7 +156,8 @@ int CmdDelete::execute (std::string& output)
|
||||
context.tdb2.modify (*task);
|
||||
++count;
|
||||
|
||||
if (context.config.getBoolean ("echo.command"))
|
||||
if (context.verbose ("affected") ||
|
||||
context.config.getBoolean ("echo.command")) // Deprecated 2.0
|
||||
out << format (STRING_CMD_DELETE_DELETING,
|
||||
task->id,
|
||||
task->get ("description"))
|
||||
|
||||
Reference in New Issue
Block a user