Unable to disable quit / exit command in non-interactive mode
还没有人认领这个 Issue。
评估
调研方向
Start by reading the application.properties handling for spring.shell.command.quit.enabled and CommandRegistryAutoConfiguration, then trace how the help command obtains its command list. The attempted Utils availability provider and custom commandRegistry bean provide comparison points. Done means the quit/exit command is absent from the help output in a non-interactive application.
由索引模型根据 Issue 内容生成。
描述
I'm creating a non-interactive spring shell (4.0.2) application and cannot seem to get rid of the quit/exit command.
I've tried ...
- Adding
spring.shell.command.quit.enabled=falseto the application.properties file doesn't work. - Retrieving the
QUIT_COMMANDfromorg.springframework.shell.core.utils.Utilsand adding an availability provider that always returns false. - Creating a
commandRegistrybean in my application that mirrors the version inCommandRegistryAutoConfigurationwithout addingQUIT_COMMANDto the registry.
None of those things will remove the quit command from the command list when I use the help command.
Any suggestions?
- 主要语言
- Java
- 星标
- 826
- 派生
- 404
- 平均合并
- 6 天 9 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
spring-projects/spring-shell 的其他 Issue
-
NonInteractiveShellRunner, wrong exit value when Commands cannot be parsed可能已有人在做 @czpilar 于 1 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 72/100
spring-projects/spring-shell#1391 · 2 条评论 ·
-
Options validation error messages in non-interactive mode可能已有人在做 @czpilar 于 1 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 65/100
spring-projects/spring-shell#1390 · 1 条评论 ·
-
ShellInputProvider inputs are not consumed by `ComponentFlow`-based interactive components (e.g. `ConfirmationInput`, `StringInput`)可能已有人在做 @czpilar 于 14 天前认领。 未关闭type/enhancement
难度 3/5 1-2 天 新手友好度 68/100
spring-projects/spring-shell#1383 · 6 条评论 ·
-
area/dependencies type/enhancement
难度 5/5 一周以上 新手友好度 25/100
spring-projects/spring-shell#1213 · 1 个 reaction ·
-
Revisit dependency to Spring Messaging可能已有人在做 @piotrooo 于 288 天前认领。 未关闭area/dependencies type/enhancement
难度 5/5 一周以上 新手友好度 25/100
spring-projects/spring-shell#1205 · 1 条评论 ·
查看 spring-projects/spring-shell 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
jenkinsci/ec2-plugin#2041 ·
-
L: github:actions L: php:composer
难度 2/5 1-3 小时 新手友好度 88/100
dependabot/dependabot-core#16493 ·
维护者通常 1 天内回复
-
SHOW EDIT of a subclass for an object of its superclass: the form fails to open with AssertionError未关闭
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 1/5 1 小时以内 新手友好度 72/100
-
难度 1/5 1 小时以内 新手友好度 78/100
FlashyReese/sodium-extra#608 ·