In version 1.77.0 we added the Symfony EventManager compontent to n98-magerun.
The event manager let you hook in the core commands.
Currently there are three core events which are available:
console.command – Before a command runs
console.terminate – After a command execution
console.exception – If a command stops with an exception