Unable to disable quit / exit command in non-interactive mode
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Java
- Stars
- 826
- Forks
- 404
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spring-projects/spring-shell
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
spring-projects/spring-shell#1391 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
spring-projects/spring-shell#1390 ·
-
type/enhancement
Difficulty 3/5 1-2 days Newbie friendliness 68/100
spring-projects/spring-shell#1383 · 6 comments ·
-
area/dependencies type/enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
spring-projects/spring-shell#1213 · 1 reaction ·
-
area/dependencies type/enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
spring-projects/spring-shell#1205 · 1 comment ·
All issues in spring-projects/spring-shell
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
bancolombia/scaffold-clean-architecture#1002 ·
Maintainers usually reply within 1 day
-
CalendarEventAttendance/get returns eventAttendanceStatus while the doc says attendanceStatusPossibly taken @chibenwa claimed this today. Openbug claude
Difficulty 1/5 Under an hour Newbie friendliness 90/100
linagora/tmail-backend#2697 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/skywalking#14120 ·
Maintainers usually reply within 1 day
-
[BUG] Case-insensitive search suggestions miss items when the JVM default locale is TurkishPossibly taken @thswlsqls claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
HMCL-dev/HMCL#6943 · 1 comment ·
Maintainers usually reply within 1 day