From 82c402c74e82f3bc46a36116d74de99c701dd224 Mon Sep 17 00:00:00 2001 From: LeiJuntao <2606542098@qq.com> Date: Sun, 31 May 2026 14:44:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'project/java-cli/src/main?= =?UTF-8?q?/java/com/example/datacollect/command/HelpCommand.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datacollect/command/HelpCommand.java | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 project/java-cli/src/main/java/com/example/datacollect/command/HelpCommand.java diff --git a/project/java-cli/src/main/java/com/example/datacollect/command/HelpCommand.java b/project/java-cli/src/main/java/com/example/datacollect/command/HelpCommand.java deleted file mode 100644 index e8c6db2..0000000 --- a/project/java-cli/src/main/java/com/example/datacollect/command/HelpCommand.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.example.datacollect.command; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.example.datacollect.repository.ArticleRepository; -import com.example.datacollect.view.ConsoleView; - -public class HelpCommand implements Command { - private static final Logger logger = LoggerFactory.getLogger(HelpCommand.class); - - private final ConsoleView view; - - public HelpCommand(ConsoleView view) { - this.view = view; - } - - @Override - public String getName() { - return "help"; - } - - @Override - public void execute(String[] args, ArticleRepository repository) { - logger.debug("Displaying help information"); - view.printInfo("Commands:"); - view.printInfo(" crawl - Crawl articles from the specified URL"); - view.printInfo(" c - Alias for crawl"); - view.printInfo(" list - List all crawled articles"); - view.printInfo(" save [file] - Save articles to file (default: articles.txt)"); - view.printInfo(" load [file] - Load articles from file (default: articles.txt)"); - view.printInfo(" history - Show command history"); - view.printInfo(" help - Show this help message"); - view.printInfo(" exit - Exit the application"); - } -} \ No newline at end of file