MCPcopy Create free account
hub / github.com/Ramos-dev/OSSTunnel / Manager

Class Manager

manager/src/main/java/server/Manager.java:23–54  ·  view source on GitHub ↗

@author nano

Source from the content-addressed store, hash-verified

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})
35public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected