You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am hoping to add a common banner that will be displayed as the first thing in the output when running any command. Similar to #578, but for general commands and not for the help command. (Is Life cycle hooks the solution to my question?)
So for example a command output could become:
=====
MyProgram version 1.2.3
=====
Run successfully!
I have searched through the issues and found out that support has been added to customize help text and make it possible to do the above for help commands, via addHelpText() or configureOutput(). Although a solution has been suggested in this comment: #1272 (comment), would it be possible to add this functionality as part of commander.js?
So I imagine something like:
program.banner("Custom Banner")
Thanks!
The text was updated successfully, but these errors were encountered:
Hello,
I am hoping to add a common banner that will be displayed as the first thing in the output when running any command. Similar to #578, but for general commands and not for the help command. (Is Life cycle hooks the solution to my question?)
So for example a command output could become:
I have searched through the issues and found out that support has been added to customize help text and make it possible to do the above for help commands, via
addHelpText()
orconfigureOutput()
. Although a solution has been suggested in this comment: #1272 (comment), would it be possible to add this functionality as part of commander.js?So I imagine something like:
Thanks!
The text was updated successfully, but these errors were encountered: