From d0d7443dcbdf097159256dbf0233e76182808cec Mon Sep 17 00:00:00 2001 From: JianXinyi <1259606552@qq.com> Date: Thu, 7 May 2026 16:07:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'w10/ExitCommand.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- w10/ExitCommand.java | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 w10/ExitCommand.java diff --git a/w10/ExitCommand.java b/w10/ExitCommand.java deleted file mode 100644 index 5763f71..0000000 --- a/w10/ExitCommand.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.example.datacollect.command; - -import com.example.datacollect.repository.ArticleRepository; -import com.example.datacollect.view.ConsoleView; - -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, ArticleRepository repository) { - view.printSuccess("Bye!"); - System.exit(0); - } -}