mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Deprecated Feature Removal
- Removed deprecated 'echo.command' setting, in favor of the 'header' and 'affected' verbosity tokens.
This commit is contained in:
parent
49c07acb05
commit
2cbae3fb9c
9 changed files with 16 additions and 28 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2.4.0 () -
|
||||||
|
|
||||||
|
Features
|
||||||
|
+ Removed deprecated 'echo.command' setting, in favor of the 'header' and
|
||||||
|
'affected' verbosity tokens.
|
||||||
|
|
||||||
|
Bugs
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
2.3.0 () -
|
2.3.0 () -
|
||||||
|
|
|
@ -284,12 +284,6 @@ confirmation before deleting a task, performing bulk changes, or the undo
|
||||||
command. The default value is "yes". Consider leaving this setting as "yes",
|
command. The default value is "yes". Consider leaving this setting as "yes",
|
||||||
for safety.
|
for safety.
|
||||||
|
|
||||||
.TP
|
|
||||||
.B echo.command=yes
|
|
||||||
May be "yes" or "no", and causes the display of the ID and description of any
|
|
||||||
task when you run the start, stop, do, undo or delete commands. The default
|
|
||||||
value is "yes". Deprecated - use verbosity tokens 'header' and 'affected'.
|
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B indent.annotation=2
|
.B indent.annotation=2
|
||||||
Controls the number of spaces to indent annotations when shown beneath the
|
Controls the number of spaces to indent annotations when shown beneath the
|
||||||
|
|
|
@ -67,8 +67,7 @@ int CmdLog::execute (std::string& output)
|
||||||
context.footnote (onProjectChange (task));
|
context.footnote (onProjectChange (task));
|
||||||
context.tdb2.commit ();
|
context.tdb2.commit ();
|
||||||
|
|
||||||
if (context.verbose ("affected") ||
|
if (context.verbose ("affected"))
|
||||||
context.config.getBoolean ("echo.command")) // Deprecated 2.0
|
|
||||||
output = std::string (STRING_CMD_LOG_LOGGED) + "\n";
|
output = std::string (STRING_CMD_LOG_LOGGED) + "\n";
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
@ -146,7 +146,6 @@ int CmdShow::execute (std::string& output)
|
||||||
" displayweeknumber"
|
" displayweeknumber"
|
||||||
" dom"
|
" dom"
|
||||||
" due"
|
" due"
|
||||||
" echo.command" // Deprecated 2.0
|
|
||||||
" edit.verbose" // Deprecated 2.0
|
" edit.verbose" // Deprecated 2.0
|
||||||
" editor"
|
" editor"
|
||||||
" exit.on.missing.db"
|
" exit.on.missing.db"
|
||||||
|
|
|
@ -314,11 +314,8 @@ std::string renderAttribute (const std::string& name, const std::string& value,
|
||||||
// <string>
|
// <string>
|
||||||
void feedback_affected (const std::string& effect)
|
void feedback_affected (const std::string& effect)
|
||||||
{
|
{
|
||||||
if (context.verbose ("affected") ||
|
if (context.verbose ("affected"))
|
||||||
context.config.getBoolean ("echo.command")) // Deprecated 2.0
|
|
||||||
{
|
|
||||||
std::cout << effect << "\n";
|
std::cout << effect << "\n";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -329,12 +326,9 @@ void feedback_affected (const std::string& effect)
|
||||||
// {1} Quantity
|
// {1} Quantity
|
||||||
void feedback_affected (const std::string& effect, int quantity)
|
void feedback_affected (const std::string& effect, int quantity)
|
||||||
{
|
{
|
||||||
if (context.verbose ("affected") ||
|
if (context.verbose ("affected"))
|
||||||
context.config.getBoolean ("echo.command")) // Deprecated 2.0
|
|
||||||
{
|
|
||||||
std::cout << format (effect, quantity)
|
std::cout << format (effect, quantity)
|
||||||
<< "\n";
|
<< "\n";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -346,8 +340,7 @@ void feedback_affected (const std::string& effect, int quantity)
|
||||||
// {2} Description
|
// {2} Description
|
||||||
void feedback_affected (const std::string& effect, const Task& task)
|
void feedback_affected (const std::string& effect, const Task& task)
|
||||||
{
|
{
|
||||||
if (context.verbose ("affected") ||
|
if (context.verbose ("affected"))
|
||||||
context.config.getBoolean ("echo.command")) // Deprecated 2.0
|
|
||||||
{
|
{
|
||||||
if (task.id)
|
if (task.id)
|
||||||
std::cout << format (effect, task.id, task.get ("description"))
|
std::cout << format (effect, task.id, task.get ("description"))
|
||||||
|
@ -392,8 +385,7 @@ void feedback_special_tags (const Task& task, const std::string& tag)
|
||||||
// Unblocked <id> '<description>'
|
// Unblocked <id> '<description>'
|
||||||
void feedback_unblocked (const Task& task)
|
void feedback_unblocked (const Task& task)
|
||||||
{
|
{
|
||||||
if (context.verbose ("affected") ||
|
if (context.verbose ("affected"))
|
||||||
context.config.getBoolean ("echo.command")) // Deprecated 2.0
|
|
||||||
{
|
{
|
||||||
// Get a list of tasks that depended on this task.
|
// Get a list of tasks that depended on this task.
|
||||||
std::vector <Task> blocked;
|
std::vector <Task> blocked;
|
||||||
|
|
|
@ -148,8 +148,7 @@ std::string legacyCheckForDeprecatedVariables ()
|
||||||
it->first.substr (it->first.length () - 12) == ".annotations")
|
it->first.substr (it->first.length () - 12) == ".annotations")
|
||||||
deprecated.push_back (it->first);
|
deprecated.push_back (it->first);
|
||||||
|
|
||||||
if (it->first == "echo.command" ||
|
if (it->first == "edit.verbose" ||
|
||||||
it->first == "edit.verbose" ||
|
|
||||||
it->first == "next" ||
|
it->first == "next" ||
|
||||||
it->first == "annotations" ||
|
it->first == "annotations" ||
|
||||||
it->first == "export.ical.class")
|
it->first == "export.ical.class")
|
||||||
|
|
|
@ -34,8 +34,7 @@ use Test::More tests => 16;
|
||||||
if (open my $fh, '>', 'delete.rc')
|
if (open my $fh, '>', 'delete.rc')
|
||||||
{
|
{
|
||||||
print $fh "data.location=.\n",
|
print $fh "data.location=.\n",
|
||||||
"confirmation=no\n",
|
"confirmation=no\n";
|
||||||
"echo.command=no\n";
|
|
||||||
close $fh;
|
close $fh;
|
||||||
ok (-r 'delete.rc', 'Created delete.rc');
|
ok (-r 'delete.rc', 'Created delete.rc');
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,6 @@ use Test::More tests => 11;
|
||||||
if (open my $fh, '>', 'undo.rc')
|
if (open my $fh, '>', 'undo.rc')
|
||||||
{
|
{
|
||||||
print $fh "data.location=.\n",
|
print $fh "data.location=.\n",
|
||||||
"echo.command=no\n",
|
|
||||||
"confirmation=no\n";
|
"confirmation=no\n";
|
||||||
close $fh;
|
close $fh;
|
||||||
ok (-r 'undo.rc', 'Created undo.rc');
|
ok (-r 'undo.rc', 'Created undo.rc');
|
||||||
|
|
|
@ -34,8 +34,7 @@ use Test::More tests => 8;
|
||||||
if (open my $fh, '>', 'verbose.rc')
|
if (open my $fh, '>', 'verbose.rc')
|
||||||
{
|
{
|
||||||
print $fh "data.location=.\n",
|
print $fh "data.location=.\n",
|
||||||
"echo.command=off\n";
|
"print.empty.columns=yes\n";
|
||||||
print $fh "print.empty.columns=yes\n";
|
|
||||||
close $fh;
|
close $fh;
|
||||||
ok (-r 'verbose.rc', 'Created verbose.rc');
|
ok (-r 'verbose.rc', 'Created verbose.rc');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue