drush_notify_send() is essentially an "API" function that should be readily available to any Drush commands that care to use it.
A small cleanup of the code would be to reduce some of the redundancy around calculating the message, with a drush_notify_command_message($command, $default = NULL)
Comments
Comment #1
Grayside commented