mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-22 05:14:38 +08:00
cli
This commit is contained in:
parent
94391277b1
commit
9f701223fa
2 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ import java.util.regex.Pattern;
|
|||
* @author devezhao
|
||||
* @since 2020/3/16
|
||||
*/
|
||||
public class AdminCLI {
|
||||
public class AdminCLI2 {
|
||||
|
||||
private static final String C_HELP = "help";
|
||||
private static final String C_CACHE = "cache";
|
||||
|
@ -32,7 +32,7 @@ public class AdminCLI {
|
|||
/**
|
||||
* @param args
|
||||
*/
|
||||
protected AdminCLI(String args) {
|
||||
protected AdminCLI2(String args) {
|
||||
List<String> list = new ArrayList<>();
|
||||
Matcher m = Pattern.compile("([^\"]\\S*|\".+?\")\\s*").matcher(args);
|
||||
while (m.find()) {
|
|
@ -114,7 +114,7 @@ public class AdminVerfiyController extends BaseController {
|
|||
return;
|
||||
}
|
||||
|
||||
String result = new AdminCLI(command).exec();
|
||||
String result = new AdminCLI2(command).exec();
|
||||
ServletUtils.write(response, result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue