You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
476 B
17 lines
476 B
/**
|
|
* 命令控制类(MVC-控制层核心)
|
|
*/
|
|
public class CommandController {
|
|
public void executeCommand(String input) {
|
|
// 解析命令别名
|
|
String realCommand = CommandParser.parseAlias(input);
|
|
|
|
// 执行对应命令逻辑
|
|
if ("crawl".equals(realCommand)) {
|
|
System.out.println("执行爬取操作...");
|
|
}
|
|
|
|
// 记录原始命令到历史
|
|
HistoryCommand.addCommand(input);
|
|
}
|
|
}
|