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."); } }