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:
Paul Beckingham 2011-10-01 11:16:12 -04:00
parent de481a7eba
commit 78f91ffa91
19 changed files with 109 additions and 30 deletions

View file

@ -98,7 +98,8 @@ int CmdAppend::execute (std::string& output)
{
context.tdb2.modify (*sibling);
if (context.config.getBoolean ("echo.command"))
if (context.verbose ("affected") ||
context.config.getBoolean ("echo.command")) // Deprecated 2.0
out << format (STRING_CMD_APPEND_DONE, sibling->id)
<< "\n";
@ -113,7 +114,8 @@ int CmdAppend::execute (std::string& output)
context.tdb2.commit ();
if (context.config.getBoolean ("echo.command"))
if (context.verbose ("affected") ||
context.config.getBoolean ("echo.command")) // Deprecated 2.0
out << format ((count == 1
? STRING_CMD_APPEND_SUMMARY
: STRING_CMD_APPEND_SUMMARY_N),