You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
481 B
21 lines
481 B
package edu.homework.crawler.command;
|
|
|
|
import edu.homework.crawler.exception.CrawlException;
|
|
|
|
public class ExitCommand implements Command {
|
|
@Override
|
|
public String name() {
|
|
return "exit";
|
|
}
|
|
|
|
@Override
|
|
public String description() {
|
|
return "Exit interactive CLI.";
|
|
}
|
|
|
|
@Override
|
|
public void execute(CommandContext context, String[] args) throws CrawlException {
|
|
context.stop();
|
|
context.view().printInfo("Bye.");
|
|
}
|
|
}
|
|
|