此版本仍在开发中,尚未被视为稳定版本。对于最新的稳定版本,请使用 Spring Shell 3.3.0! |
此版本仍在开发中,尚未被视为稳定版本。对于最新的稳定版本,请使用 Spring Shell 3.3.0! |
如果您的 shell 应用程序完全是为只有一个目的而制作的
命令 为此配置它可能是有益的。属性(如果定义)将禁用所有其他
runners than 并将其配置为使用
定义了主命令。spring.shell.noninteractive.primary-command
NonInteractiveShellRunner
spring:
shell:
noninteractive:
primary-command: mycommand
例如,如果您有一个带有选项的命令,则必须使用 ,但使用 above
设置它可以用 执行。mycommand
arg
<shellapp> mycommand --arg hi
<shellapp> --arg hi