Skip to content

Commit cc5bf54

Browse files
committed
Move core APIs under a dedicated named package
1 parent d2fab3b commit cc5bf54

File tree

292 files changed

+732
-730
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+732
-730
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
2626
import org.springframework.boot.context.properties.EnableConfigurationProperties;
2727
import org.springframework.context.annotation.Bean;
28-
import org.springframework.shell.MethodTargetRegistrar;
28+
import org.springframework.shell.core.MethodTargetRegistrar;
2929
import org.springframework.shell.boot.SpringShellProperties.Help;
30-
import org.springframework.shell.command.CommandCatalog;
31-
import org.springframework.shell.command.CommandCatalogCustomizer;
32-
import org.springframework.shell.command.CommandRegistration;
33-
import org.springframework.shell.command.CommandRegistration.BuilderSupplier;
34-
import org.springframework.shell.command.CommandRegistration.OptionNameModifier;
35-
import org.springframework.shell.command.support.OptionNameModifierSupport;
36-
import org.springframework.shell.command.CommandResolver;
37-
import org.springframework.shell.context.ShellContext;
30+
import org.springframework.shell.core.command.CommandCatalog;
31+
import org.springframework.shell.core.command.CommandCatalogCustomizer;
32+
import org.springframework.shell.core.command.CommandRegistration;
33+
import org.springframework.shell.core.command.CommandRegistration.BuilderSupplier;
34+
import org.springframework.shell.core.command.CommandRegistration.OptionNameModifier;
35+
import org.springframework.shell.core.command.support.OptionNameModifierSupport;
36+
import org.springframework.shell.core.command.CommandResolver;
37+
import org.springframework.shell.core.context.ShellContext;
3838

3939
@AutoConfiguration
4040
@EnableConfigurationProperties(SpringShellProperties.class)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
package org.springframework.shell.boot;
1717

18-
import org.springframework.shell.command.CommandRegistration;
18+
import org.springframework.shell.core.command.CommandRegistration;
1919

2020
/**
2121
* Callback interface that can be used to customize a {@link CommandRegistration.Builder}.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
import org.springframework.beans.factory.annotation.Autowired;
2727
import org.springframework.boot.autoconfigure.AutoConfiguration;
2828
import org.springframework.context.annotation.Bean;
29-
import org.springframework.shell.CompletingParsedLine;
30-
import org.springframework.shell.CompletionContext;
31-
import org.springframework.shell.CompletionProposal;
32-
import org.springframework.shell.Shell;
29+
import org.springframework.shell.core.CompletingParsedLine;
30+
import org.springframework.shell.core.CompletionContext;
31+
import org.springframework.shell.core.CompletionProposal;
32+
import org.springframework.shell.core.Shell;
3333

3434
/**
3535
* @author Piotr Olaszewski

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2727
import org.springframework.context.annotation.Bean;
28-
import org.springframework.shell.command.CommandExecution;
29-
import org.springframework.shell.exit.ExitCodeExceptionProvider;
30-
import org.springframework.shell.exit.ExitCodeMappings;
28+
import org.springframework.shell.core.command.CommandExecution;
29+
import org.springframework.shell.core.exit.ExitCodeExceptionProvider;
30+
import org.springframework.shell.core.exit.ExitCodeMappings;
3131

3232
/**
3333
* {@link EnableAutoConfiguration Auto-configuration} for exit codes.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
import org.springframework.boot.autoconfigure.AutoConfiguration;
3131
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
3232
import org.springframework.context.annotation.Bean;
33-
import org.springframework.shell.jline.ExtendedDefaultParser;
34-
import org.springframework.shell.jline.PromptProvider;
33+
import org.springframework.shell.core.jline.ExtendedDefaultParser;
34+
import org.springframework.shell.core.jline.PromptProvider;
3535

3636
/**
3737
* Shell implementation using JLine to capture input and trigger completions.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
import org.springframework.context.annotation.Bean;
3939
import org.springframework.context.event.ContextClosedEvent;
4040
import org.springframework.context.event.EventListener;
41-
import org.springframework.shell.command.CommandCatalog;
42-
import org.springframework.shell.config.UserConfigPathProvider;
41+
import org.springframework.shell.core.command.CommandCatalog;
42+
import org.springframework.shell.core.config.UserConfigPathProvider;
4343
import org.springframework.util.StringUtils;
4444

4545
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.springframework.shell.boot;
22

3-
import org.springframework.shell.jline.NonInteractiveShellRunner;
3+
import org.springframework.shell.core.jline.NonInteractiveShellRunner;
44

55
/**
66
* Callback interface that can be implemented by beans wishing to customize the

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
import org.springframework.context.annotation.Bean;
2323
import org.springframework.messaging.handler.annotation.support.HeadersMethodArgumentResolver;
2424
import org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver;
25-
import org.springframework.shell.command.ArgumentHeaderMethodArgumentResolver;
26-
import org.springframework.shell.command.CommandContextMethodArgumentResolver;
27-
import org.springframework.shell.command.CommandExecution.CommandExecutionHandlerMethodArgumentResolvers;
28-
import org.springframework.shell.command.annotation.support.OptionMethodArgumentResolver;
29-
import org.springframework.shell.completion.CompletionResolver;
30-
import org.springframework.shell.completion.RegistrationOptionsCompletionResolver;
31-
import org.springframework.shell.config.ShellConversionServiceSupplier;
25+
import org.springframework.shell.core.command.ArgumentHeaderMethodArgumentResolver;
26+
import org.springframework.shell.core.command.CommandContextMethodArgumentResolver;
27+
import org.springframework.shell.core.command.CommandExecution.CommandExecutionHandlerMethodArgumentResolvers;
28+
import org.springframework.shell.core.command.annotation.support.OptionMethodArgumentResolver;
29+
import org.springframework.shell.core.completion.CompletionResolver;
30+
import org.springframework.shell.core.completion.RegistrationOptionsCompletionResolver;
31+
import org.springframework.shell.core.config.ShellConversionServiceSupplier;
3232

3333
@AutoConfiguration
3434
public class ParameterResolverAutoConfiguration {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
import org.springframework.boot.autoconfigure.AutoConfiguration;
2222
import org.springframework.context.annotation.Bean;
23-
import org.springframework.shell.context.DefaultShellContext;
24-
import org.springframework.shell.context.ShellContext;
23+
import org.springframework.shell.core.context.DefaultShellContext;
24+
import org.springframework.shell.core.context.ShellContext;
2525

2626
@AutoConfiguration
2727
public class ShellContextAutoConfiguration {

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
import org.springframework.context.annotation.Bean;
2626
import org.springframework.context.annotation.Conditional;
2727
import org.springframework.context.annotation.Configuration;
28-
import org.springframework.shell.Shell;
28+
import org.springframework.shell.core.Shell;
2929
import org.springframework.shell.boot.condition.OnNotPrimaryCommandCondition;
3030
import org.springframework.shell.boot.condition.OnPrimaryCommandCondition;
31-
import org.springframework.shell.context.ShellContext;
32-
import org.springframework.shell.jline.InteractiveShellRunner;
33-
import org.springframework.shell.jline.NonInteractiveShellRunner;
34-
import org.springframework.shell.jline.PromptProvider;
35-
import org.springframework.shell.jline.ScriptShellRunner;
31+
import org.springframework.shell.core.context.ShellContext;
32+
import org.springframework.shell.core.jline.InteractiveShellRunner;
33+
import org.springframework.shell.core.jline.NonInteractiveShellRunner;
34+
import org.springframework.shell.core.jline.PromptProvider;
35+
import org.springframework.shell.core.jline.ScriptShellRunner;
3636

3737
@AutoConfiguration
3838
public class ShellRunnerAutoConfiguration {

0 commit comments

Comments
 (0)