mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-10 04:00:37 +02:00
Diagnostics
- Now displays all installed hook scripts, with executable/symlink status.
This commit is contained in:
parent
92010eeb2c
commit
924182e12c
1 changed files with 18 additions and 1 deletions
|
@ -271,7 +271,24 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
out << bold.colorize (STRING_CMD_DIAG_HOOKS)
|
||||
<< "\n";
|
||||
|
||||
out << "\n\n";
|
||||
std::vector <std::string> hooks = context.hooks.list ();
|
||||
if (hooks.size ())
|
||||
{
|
||||
std::vector <std::string>::iterator h;
|
||||
for (h = hooks.begin (); h != hooks.end (); ++h)
|
||||
{
|
||||
Path p (*h);
|
||||
out << " "
|
||||
<< *h
|
||||
<< (p.executable () ? " (executable)" : " (not executable)")
|
||||
<< (p.is_link () ? " (symlink)" : "")
|
||||
<< "\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
out << " (none)\n";
|
||||
|
||||
out << "\n";
|
||||
|
||||
// Verify UUIDs are all unique.
|
||||
out << bold.colorize (STRING_CMD_DIAG_TESTS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue