@author nano
| 21 | * @author nano |
| 22 | */ |
| 23 | @Configuration |
| 24 | @Import({ |
| 25 | SpringShellAutoConfiguration.class, |
| 26 | JLineShellAutoConfiguration.class, |
| 27 | JCommanderParameterResolverAutoConfiguration.class, |
| 28 | StandardAPIAutoConfiguration.class, |
| 29 | StandardCommandsAutoConfiguration.class, |
| 30 | BucketCommands.class, |
| 31 | LucianCommands.class, |
| 32 | Commands.class, |
| 33 | FileValueProvider.class, |
| 34 | }) |
| 35 | public class Manager { |
| 36 | |
| 37 | public static void main(String[] args) { |
| 38 | String[] disabledCommands = {"--spring.shell.command.stacktrace.enabled=true", "-Dfile.encoding=UTF8", "-Dsun.jnu.encoding=UTF8"}; |
| 39 | String[] fullArgs = StringUtils.concatenateStringArrays(args, disabledCommands); |
| 40 | ConfigurableApplicationContext context = SpringApplication.run(Manager.class, fullArgs); |
| 41 | } |
| 42 | |
| 43 | @Bean |
| 44 | public PromptProvider promptProvider() { |
| 45 | return new PromptProvider() { |
| 46 | @Override |
| 47 | public AttributedString getPrompt() { |
| 48 | return new AttributedString("root$ >", |
| 49 | AttributedStyle.HIDDEN_OFF.foreground(AttributedStyle.BLACK)); |
| 50 | } |
| 51 | }; |
| 52 | } |
| 53 | |
| 54 | } |
nothing calls this directly
no outgoing calls
no test coverage detected