Skip to content

Built-in commands aren't disabled using properties as described in documentation #943

Open
@stellirin

Description

@stellirin

Tested with 3.2.0-RC1 and 3.1.0, older versions were not tested because I'm using functionality introduced in 3.1.0.

Documentation states that I can add properties to disable functionality, e.g.:

spring:
  shell:
    history.enabled: false
    interactive.enabled: false
    script.enabled: false

However, of these three only interactive.enabled: false actually disables the feature. Easy to see it with the help command

AVAILABLE COMMANDS

Built-In Commands
       help: Display help about available commands
       history: Display or save the history of previously run commands
       version: Show version info
       script: Read and execute commands from a file.

I found that history and script require different properties:

spring:
  shell:
    interactive.enabled: false
    command:
      history.enabled: false
      script.enabled: false
AVAILABLE COMMANDS

Built-In Commands
       help: Display help about available commands
       version: Show version info

Either documentation has been wrong for some time and the correct properties are spring.shell.command.*.enabled=false or A bug was introduced sometime ago that made the properties spring.shell.*.enabled=false to stop working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions