2021-10-30 22:05:24 +02:00
|
|
|
package io.gitlab.jfronny.inceptum.cli;
|
|
|
|
|
|
|
|
import io.gitlab.jfronny.inceptum.Inceptum;
|
2021-10-31 16:59:25 +01:00
|
|
|
import io.gitlab.jfronny.inceptum.model.inceptum.CommandArguments;
|
2021-10-30 22:05:24 +02:00
|
|
|
|
|
|
|
public class HelpCommand extends Command {
|
|
|
|
public HelpCommand() {
|
|
|
|
super("Displays this screen", "help");
|
|
|
|
}
|
|
|
|
@Override
|
2021-10-31 16:59:25 +01:00
|
|
|
public void invoke(CommandArguments args) {
|
2021-10-31 13:37:07 +01:00
|
|
|
System.out.println("Inceptum v" + Inceptum.VERSION.version + " (" + Inceptum.VERSION.flavor + ")\n\nCommands:");
|
2021-10-30 22:05:24 +02:00
|
|
|
for (Command command : Inceptum.COMMANDS) {
|
|
|
|
System.out.println(" " + command.getName() + " - " + command.getHelp());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|