M332-PT-NGCC/NGCC/src/Exec.java

43 lines
1.2 KiB
Java
Raw Normal View History

2019-09-15 12:27:15 +02:00
import java.util.concurrent.Callable;
import commands.Read;
2019-09-10 21:42:03 +02:00
import picocli.CommandLine;
2019-09-15 12:27:15 +02:00
import picocli.CommandLine.*;
@Command(
name = "Exec",
version = "Version 1.0",
sortOptions = false,
usageHelpWidth = 60,
header = "\n ---- Nicely Generated and Corrected Copies ---- \n\n" +
" _______ _________________ ________ \n" +
" \\ \\ / _____/\\_ ___ \\\\_ ___ \\ \n" +
" / | \\/ \\ ___/ \\ \\// \\ \\/ \n" +
" / | \\ \\_ \\ \\ \\___\\ \\___ \n" +
" \\____|__ /\\______ /\\______ /\\______ / \n" +
" \\/ \\/ \\/ \\/ \n" +
" \n" ,
footer = "\n\n ---- Provided by IUT Info Nice S3T-G4 ---- \n",
description = "description"
)
public class Exec implements Callable <Void> {
public static void main(String[] args) throws InterruptedException {
CommandLine cmd = new CommandLine (new Exec())
.addSubcommand("-r", new Read(System.out))
.addSubcommand("help", new HelpCommand());
cmd.execute(args);
2019-09-10 21:42:03 +02:00
}
2019-09-15 12:27:15 +02:00
@Override
public Void call() throws Exception {
return null;
}
2019-09-10 21:42:03 +02:00
}