mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-10 13:10:37 +02:00
Diagnostics
- Added new server configuration settings to diagnostics output.
This commit is contained in:
parent
7fa3f71575
commit
b42ca26631
1 changed files with 13 additions and 0 deletions
|
@ -222,10 +222,22 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
<< context.config.get ("taskd.server")
|
||||
<< "\n";
|
||||
|
||||
if (context.config.get ("taskd.ca") != "")
|
||||
out << " CA: "
|
||||
<< context.config.get ("taskd.ca")
|
||||
<< "\n";
|
||||
|
||||
if (context.config.get ("taskd.trust") != "")
|
||||
out << " Trust: override\n";
|
||||
|
||||
out << " Cert: "
|
||||
<< context.config.get ("taskd.certificate")
|
||||
<< "\n";
|
||||
|
||||
out << " Key: "
|
||||
<< context.config.get ("taskd.key")
|
||||
<< "\n";
|
||||
|
||||
// Get credentials, but mask out the key.
|
||||
std::string credentials = context.config.get ("taskd.credentials");
|
||||
std::string::size_type last_slash = credentials.rfind ('/');
|
||||
|
@ -239,6 +251,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
<< "\n\n";
|
||||
|
||||
// External commands.
|
||||
// Deprecated in 2.3.0 with push, pull, merge.
|
||||
out << bold.colorize (STRING_CMD_DIAG_EXTERNAL)
|
||||
<< "\n";
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue