Skip to content

Commit ca52289

Browse files
committed
Make interactive mode the default
Closes: gh-1186 Signed-off-by: Andrey Litvitski <[email protected]>
1 parent 328f23a commit ca52289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot/ShellRunnerAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ public static class NonePrimaryCommandConfiguration {
6161

6262
@Bean
6363
@ConditionalOnProperty(prefix = "spring.shell.interactive", value = "enabled", havingValue = "true",
64-
matchIfMissing = false)
64+
matchIfMissing = true)
6565
public InteractiveShellRunner interactiveApplicationRunner(LineReader lineReader, PromptProvider promptProvider,
6666
Shell shell, ShellContext shellContext) {
6767
return new InteractiveShellRunner(lineReader, promptProvider, shell, shellContext);
6868
}
6969

7070
@Bean
7171
@ConditionalOnProperty(prefix = "spring.shell.noninteractive", value = "enabled", havingValue = "true",
72-
matchIfMissing = true)
72+
matchIfMissing = false)
7373
public NonInteractiveShellRunner nonInteractiveApplicationRunner(Shell shell, ShellContext shellContext,
7474
ObjectProvider<NonInteractiveShellRunnerCustomizer> customizer) {
7575
NonInteractiveShellRunner shellRunner = new NonInteractiveShellRunner(shell, shellContext);

0 commit comments

Comments
 (0)