File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
boot/src/main/java/com/reajason/javaweb/boot/controller Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11package com .reajason .javaweb .boot .controller ;
22
33import com .reajason .javaweb .boot .entity .Config ;
4- import com .reajason .javaweb .memshell .server . AbstractShell ;
4+ import com .reajason .javaweb .memshell .Packers ;
55import com .reajason .javaweb .memshell .Server ;
66import com .reajason .javaweb .memshell .ShellTool ;
7- import com .reajason .javaweb .memshell .Packers ;
7+ import com .reajason .javaweb .memshell .server . AbstractShell ;
88import org .springframework .http .ResponseEntity ;
99import org .springframework .web .bind .annotation .CrossOrigin ;
1010import org .springframework .web .bind .annotation .RequestMapping ;
@@ -29,9 +29,8 @@ public ResponseEntity<?> config() {
2929 if (shell == null ) {
3030 continue ;
3131 }
32- ShellTool [] supportedShellTools = ShellTool .values ();
3332 Map <String , Set <String >> map = new LinkedHashMap <>(16 );
34- for (ShellTool shellTool : supportedShellTools ) {
33+ for (ShellTool shellTool : shell . getSupportedShellTools () ) {
3534 Set <String > supportedShellTypes = shell .getSupportedShellTypes (shellTool );
3635 if (supportedShellTypes .isEmpty ()) {
3736 continue ;
You can’t perform that action at this time.
0 commit comments