From d6e734b57daee06284b438abf14b7fa8a624bb9e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 2 Jul 2014 00:17:51 -0400 Subject: [PATCH] TW-128 - TW-128 new helper command; _envs. Actually no, not a new command, but the $TASKRC and $TASKDATA environment variables are now show in the 'diag' command output. --- ChangeLog | 1 + src/commands/CmdDiagnostics.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 41e2f0401..4e7c6af47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,7 @@ - TW-44 Space handling in dateformat (thanks to Louis-Claude Canon). - TW-72 extend info report with urgency column - TW-115 allow "0day" durations for UDAs. +- TW-128 new helper command; _envs. - TW-168 modification of due date relative to current due date (thanks to Dirk Sarpe). - TW-186 Increase for numerical UDAs (thanks to Steffen Uhlig). diff --git a/src/commands/CmdDiagnostics.cpp b/src/commands/CmdDiagnostics.cpp index c47dec897..9d8be9a79 100644 --- a/src/commands/CmdDiagnostics.cpp +++ b/src/commands/CmdDiagnostics.cpp @@ -210,6 +210,18 @@ int CmdDiagnostics::execute (std::string& output) << location.mode () << "\n"; + char* env = getenv ("TASKRC"); + if (env) + out << " TASKRC: " + << env + << "\n"; + + env = getenv ("TASKDATA"); + if (env) + out << " TASKDATA: " + << env + << "\n"; + out << " Locking: " << (context.config.getBoolean ("locking") ? STRING_CMD_DIAG_ENABLED