Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unable to disable quit / exit command in non-interactive mode

Closed
#1,377 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java, spring
Domain
cli

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

status/need-triage

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=false to the application.properties file doesn't work.
  • Retrieving the QUIT_COMMAND from org.springframework.shell.core.utils.Utils and adding an availability provider that always returns false.
  • Creating a commandRegistry bean in my application that mirrors the version in CommandRegistryAutoConfiguration without adding QUIT_COMMAND to 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spring-projects/spring-shell

All issues in spring-projects/spring-shell

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.