Spring Shell 3.1.6中的自定义帮助命令

svdrlsy4  于 5个月前  发布在  Spring
关注(0)|答案(1)|浏览(56)

我已经构建了一个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]


一直在谷歌搜索,但还没有找到解决方案,有人有一个伟大的想法?
--安迪

kqhtkvqz

kqhtkvqz1#

我根据自己的喜好修改了templates目录下的stg文件,这样就解决了问题

相关问题