mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 15:47:19 +02:00
Enhancement - Hooks
- Implemented lots of command hooks.
This commit is contained in:
parent
78c7408380
commit
dd423d315b
6 changed files with 2818 additions and 2651 deletions
|
@ -248,7 +248,9 @@ int Context::dispatch (std::string &out)
|
|||
else if (cmd.validCustom (cmd.command)) { if (!inShadow) tdb.gc (); rc = handleCustomReport (cmd.command, out); }
|
||||
|
||||
// If the command is not recognized, display usage.
|
||||
else { rc = shortUsage (out); }
|
||||
else { hooks.trigger ("pre-usage-command");
|
||||
rc = shortUsage (out);
|
||||
hooks.trigger ("post-usage-command"); }
|
||||
|
||||
// Only update the shadow file if such an update was not suppressed (shadow),
|
||||
if (cmd.isWriteCommand () && !inShadow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue