From 85eff4772f5147c5ec10a3280911872c03564439 Mon Sep 17 00:00:00 2001 From: Songrui <1778280163@qq.com> Date: Fri, 29 May 2026 01:41:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'src/main/java/com/example?= =?UTF-8?q?/datacollect/command/ExitCommand.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datacollect/command/ExitCommand.java | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 src/main/java/com/example/datacollect/command/ExitCommand.java diff --git a/src/main/java/com/example/datacollect/command/ExitCommand.java b/src/main/java/com/example/datacollect/command/ExitCommand.java deleted file mode 100644 index 6946d85..0000000 --- a/src/main/java/com/example/datacollect/command/ExitCommand.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.example.datacollect.command; - -import com.example.datacollect.model.Article; -import com.example.datacollect.view.ConsoleView; -import java.util.List; - -public class ExitCommand implements Command { - private final ConsoleView view; - - public ExitCommand(ConsoleView view) { - this.view = view; - } - - @Override - public String getName() { - return "exit"; - } - - @Override - public void execute(String[] args, List
articles) { - view.printSuccess("Bye!"); - System.exit(0); - } -}