Commands color in spring shell 2

时光毁灭记忆、已成空白 提交于 2019-12-13 04:20:06

问题


In SPRING SHELL 2 the default incorrect command and error output colors are red. Is it possible to define custom colors for these purposes?

Thank you!


回答1:


What happens when execution of a command ends up throwing an exception is handled by ThrowableResultHandler, whose implementation use RED to display text.

If you want to customize this, just override that result handler.



来源:https://stackoverflow.com/questions/52187292/commands-color-in-spring-shell-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!