1 package eu.svjatoslav.meviz.htmlindexer;
3 import eu.svjatoslav.meviz.Module;
4 import eu.svjatoslav.meviz.htmlindexer.indexer.FilesystemIndexRemover;
5 import eu.svjatoslav.meviz.htmlindexer.indexer.FilesystemIndexer;
7 import java.util.ArrayList;
9 public class Main implements Module {
11 private final CommandlineHandler commandlineHandler = new CommandlineHandler();
17 public String getDescription() {
18 return "Generate HTML listing of directories.";
25 public String getModuleCommand() {
33 public void run(final String[] args) throws Exception {
35 if (commandlineHandler.parseCommandlineArguments(args))
36 if (commandlineHandler.removeIndex.isSpecified())
37 new FilesystemIndexRemover(commandlineHandler);
39 new FilesystemIndexer(commandlineHandler.getWorkingDirectory(),
40 commandlineHandler, new ArrayList<>());
48 public void showCommandlineHelp() {
49 commandlineHandler.parser.showHelp();