Matthias Andreas Benkard | b291c36 | 2020-11-22 10:22:27 +0100 | [diff] [blame] | 1 | package eu.mulk.aendggner; |
| 2 | |
Matthias Andreas Benkard | d9f32a8 | 2020-11-22 14:36:59 +0100 | [diff] [blame^] | 3 | import java.io.File; |
Matthias Andreas Benkard | b291c36 | 2020-11-22 10:22:27 +0100 | [diff] [blame] | 4 | import java.util.concurrent.Callable; |
| 5 | import picocli.CommandLine; |
| 6 | import picocli.CommandLine.Command; |
Matthias Andreas Benkard | d9f32a8 | 2020-11-22 14:36:59 +0100 | [diff] [blame^] | 7 | import picocli.CommandLine.Parameters; |
Matthias Andreas Benkard | b291c36 | 2020-11-22 10:22:27 +0100 | [diff] [blame] | 8 | |
Matthias Andreas Benkard | d9f32a8 | 2020-11-22 14:36:59 +0100 | [diff] [blame^] | 9 | @Command( |
| 10 | name = "ÄndGgner", |
| 11 | mixinStandardHelpOptions = true, |
| 12 | version = "ÄndGgner 0.1", |
| 13 | description = "Displays German amendment acts in a user-friendly, consolidated way.") |
Matthias Andreas Benkard | b291c36 | 2020-11-22 10:22:27 +0100 | [diff] [blame] | 14 | public class AendGgner implements Callable<Integer> { |
| 15 | |
Matthias Andreas Benkard | d9f32a8 | 2020-11-22 14:36:59 +0100 | [diff] [blame^] | 16 | @Parameters(index = "0", description = "The base text to modify.") |
| 17 | private File baseFile; |
| 18 | |
| 19 | @Parameters(index = "1", description = "The diff relative to the base text.") |
| 20 | private File diffFile; |
| 21 | |
Matthias Andreas Benkard | b291c36 | 2020-11-22 10:22:27 +0100 | [diff] [blame] | 22 | public static void main(String... args) { |
| 23 | int exitCode = new CommandLine(new AendGgner()).execute(args); |
| 24 | System.exit(exitCode); |
| 25 | } |
| 26 | |
| 27 | @Override |
| 28 | public final Integer call() { |
| 29 | System.out.println("Hi."); |
| 30 | return 0; |
| 31 | } |
| 32 | } |