mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Legacy Checking
- The 'show' command now mentions use of any deprecated configuration variables.
This commit is contained in:
parent
dc3470a9a8
commit
0aa953dc4e
4 changed files with 46 additions and 8 deletions
|
@ -284,6 +284,16 @@ int CmdShow::execute (std::string& output)
|
|||
<< (view.rows () == 0 ? STRING_CMD_SHOW_NONE : "")
|
||||
<< (view.rows () == 0 ? "\n\n" : "\n");
|
||||
|
||||
if (default_values.size ())
|
||||
{
|
||||
out << STRING_CMD_SHOW_DIFFER;
|
||||
|
||||
if (context.color ())
|
||||
out << " "
|
||||
<< format (STRING_CMD_SHOW_DIFFER_COLOR, warning.colorize ("color"))
|
||||
<< "\n\n";
|
||||
}
|
||||
|
||||
// Display the unrecognized variables.
|
||||
if (unrecognized.size ())
|
||||
{
|
||||
|
@ -298,14 +308,7 @@ int CmdShow::execute (std::string& output)
|
|||
out << "\n\n";
|
||||
}
|
||||
|
||||
if (default_values.size ())
|
||||
{
|
||||
out << STRING_CMD_SHOW_DIFFER;
|
||||
|
||||
if (context.color ())
|
||||
out << " " << format (STRING_CMD_SHOW_DIFFER_COLOR, warning.colorize ("color"));
|
||||
}
|
||||
|
||||
out << legacyCheckForDeprecatedVariables ();
|
||||
out << legacyCheckForDeprecatedColor ();
|
||||
out << legacyCheckForDeprecatedColumns ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue