Bael 3460 (#8550)
* Hexagonal architecture: a quick and practical example * BAEL 3486 * BAEL-3460 Airline introduction * BAEL-3460 * BAEL-3460 Airline introduction BAEL-3460 * BAEL-3460 * Formatting
This commit is contained in:
committed by
Sam Millington
parent
33849011c8
commit
0648ba53ab
@@ -0,0 +1,17 @@
|
||||
package com.baeldung.airline;
|
||||
|
||||
import com.github.rvesse.airline.annotations.Cli;
|
||||
import com.github.rvesse.airline.help.Help;
|
||||
|
||||
@Cli(name = "baeldung-cli",
|
||||
description = "Baeldung Airline Tutorial",
|
||||
defaultCommand = Help.class,
|
||||
commands = { DatabaseSetupCommand.class, LoggingCommand.class, Help.class })
|
||||
public class CommandLine {
|
||||
|
||||
public static void main(String[] args) {
|
||||
com.github.rvesse.airline.Cli<Runnable> cli = new com.github.rvesse.airline.Cli<>(CommandLine.class);
|
||||
Runnable cmd = cli.parse(args);
|
||||
cmd.run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user