1 changed files with 0 additions and 24 deletions
@ -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<Article> articles) { |
|
||||
view.printSuccess("Bye!"); |
|
||||
System.exit(0); |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue