diff --git a/project/java-cli/src/main/java/com/example/datacollect/command/ExitCommand.java b/project/java-cli/src/main/java/com/example/datacollect/command/ExitCommand.java deleted file mode 100644 index 21b83cc..0000000 --- a/project/java-cli/src/main/java/com/example/datacollect/command/ExitCommand.java +++ /dev/null @@ -1,29 +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 ExitCommand implements Command { - private static final Logger logger = LoggerFactory.getLogger(ExitCommand.class); - - 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) { - logger.info("Exiting application"); - view.printSuccess("Bye!"); - System.exit(0); - } -}