dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Welcome message? #141

Closed AriaFallah closed 8 years ago

AriaFallah commented 8 years ago

Is there a way to make a welcome message for the CLI when it's first invoked?

Something like:

Welcome to CLI, try running "help" to see what you can do!
cli $ 
dthree commented 8 years ago

I would probably just do this:

vorpal.show();
vorpal.log('Welcome to CLI, try running "help" to see what you can do!');
AriaFallah commented 8 years ago

@dthree just realized I can also do a simple console.log()...

Thank you!

dthree commented 8 years ago

Sure! For the record, don't do console.log as this will mess with the prompt. vorpal.log properly redraws the prompt after logging.