Skip to content

Add missing beforePrintCallback#45

Open
fracz wants to merge 2 commits intochmontgomery:masterfrom
fracz:before-print-callback
Open

Add missing beforePrintCallback#45
fracz wants to merge 2 commits intochmontgomery:masterfrom
fracz:before-print-callback

Conversation

@fracz
Copy link

@fracz fracz commented Sep 12, 2016

This PR adds a beforePrintCallback config option which allows to add a function to execute before the default help task runs.

It can be used for example for displaying the project logo in ascii art before the help message :-)

             _             _          _       
  __ _ _   _| |_ __       | |__   ___| |_ __  
 / _` | | | | | '_ \ _____| '_ \ / _ \ | '_ \ 
| (_| | |_| | | |_) |_____| | | |  __/ | |_) |
 \__, |\__,_|_| .__/      |_| |_|\___|_| .__/ 
 |___/        |_|                      |_|    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant