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.
26 lines
556 B
26 lines
556 B
package com.crawler.command;
|
|
|
|
import com.crawler.controller.CrawlerController;
|
|
|
|
public class ListCommand implements Command {
|
|
private final CrawlerController controller;
|
|
|
|
public ListCommand(CrawlerController controller) {
|
|
this.controller = controller;
|
|
}
|
|
|
|
@Override
|
|
public void execute(String[] args) {
|
|
controller.listArticles();
|
|
}
|
|
|
|
@Override
|
|
public String getCommandName() {
|
|
return "list";
|
|
}
|
|
|
|
@Override
|
|
public String getDescription() {
|
|
return "List all crawled articles";
|
|
}
|
|
}
|
|
|