Skip to content

Unable to disable quit / exit command #1377

Description

@fallingrock

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageTeam needs to triage and take a first look

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions