equal
deleted
inserted
replaced
|
1 package info.globalcode.sql.dk; |
|
2 |
|
3 import java.io.PrintStream; |
|
4 import java.util.EnumSet; |
|
5 |
|
6 /** |
|
7 * Displays info like help, version etc. |
|
8 * |
|
9 * @author Ing. František Kučera (frantovo.cz) |
|
10 */ |
|
11 public class InfoLister { |
|
12 |
|
13 public void showInfo(EnumSet<CLIOptions.INFO_TYPE> infoTypes, PrintStream out) { |
|
14 for (CLIOptions.INFO_TYPE infoType : infoTypes) { |
|
15 switch (infoType) { |
|
16 /** |
|
17 * TODO: implement show info |
|
18 */ |
|
19 case FORMATTERS: |
|
20 out.println("TODO: list available formatters"); |
|
21 break; |
|
22 case HELP: |
|
23 out.println("TODO: show some help"); |
|
24 break; |
|
25 case LICENSE: |
|
26 out.println("TODO: show license"); |
|
27 break; |
|
28 case TYPES: |
|
29 out.println("TODO: list supported types"); |
|
30 break; |
|
31 case VERSION: |
|
32 out.println("TODO: show version"); |
|
33 break; |
|
34 default: |
|
35 throw new IllegalArgumentException("Unsupported INFO_TYPE: " + infoType); |
|
36 } |
|
37 } |
|
38 } |
|
39 } |