From f6d0d24713bac9ae1570e3a2bbc710840afeed0f Mon Sep 17 00:00:00 2001 From: LeiJuntao <2606542098@qq.com> Date: Sun, 31 May 2026 15:13:37 +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/ListCommand.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datacollect/command/ListCommand.java | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 project/java-cli/src/main/java/com/example/datacollect/command/ListCommand.java diff --git a/project/java-cli/src/main/java/com/example/datacollect/command/ListCommand.java b/project/java-cli/src/main/java/com/example/datacollect/command/ListCommand.java deleted file mode 100644 index aa0d882..0000000 --- a/project/java-cli/src/main/java/com/example/datacollect/command/ListCommand.java +++ /dev/null @@ -1,28 +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 ListCommand implements Command { - private static final Logger logger = LoggerFactory.getLogger(ListCommand.class); - - private final ConsoleView view; - - public ListCommand(ConsoleView view) { - this.view = view; - } - - @Override - public String getName() { - return "list"; - } - - @Override - public void execute(String[] args, ArticleRepository repository) { - logger.debug("Listing {} articles", repository.size()); - view.display(repository.getAll()); - } -}