mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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.
This commit is contained in:
parent
5413d3172b
commit
d6e734b57d
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue