我已经构建了一个spring-shell
应用程序,我想自定义内置的help
命令。目前它看起来像这样:
shell:>help help
NAME
help - Display help about available commands
SYNOPSIS
help --command String[] --help
OPTIONS
--command or -C String[]
The command to obtain help for.
[Optional]
--help or -h
help for help
[Optional]
字符串
我想自定义它,使它看起来像这样,例如添加帮助部分。
shell:>help help
HELP email: [email protected]
Slack: https://slckchannel
NAME
help - Display help about available commands
SYNOPSIS
help --command String[] --help
OPTIONS
--command or -C String[]
The command to obtain help for.
[Optional]
--help or -h
help for help
[Optional]
型
一直在谷歌搜索,但还没有找到解决方案,有人有一个伟大的想法?
--安迪
1条答案
按热度按时间kqhtkvqz1#
我根据自己的喜好修改了
templates
目录下的stg
文件,这样就解决了问题