1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java Mon Dec 16 15:15:32 2013 +0100
1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java Mon Dec 16 15:29:02 2013 +0100
1.3 @@ -10,7 +10,8 @@
1.4 */
1.5 public class InfoLister {
1.6
1.7 - public void showInfo(EnumSet<CLIOptions.INFO_TYPE> infoTypes, PrintStream out) {
1.8 + public void showInfo(CLIOptions options, PrintStream out) {
1.9 + EnumSet<CLIOptions.INFO_TYPE> infoTypes = options.getShowInfo();
1.10 for (CLIOptions.INFO_TYPE infoType : infoTypes) {
1.11 switch (infoType) {
1.12 /**
1.13 @@ -31,6 +32,12 @@
1.14 case VERSION:
1.15 out.println("TODO: show version");
1.16 break;
1.17 + case DATABASES:
1.18 + out.println("TODO: list databases");
1.19 + break;
1.20 + case CONNECTION:
1.21 + out.println("TODO: test database connection: " + options.getDatabaseNameToTest());
1.22 + break;
1.23 default:
1.24 throw new IllegalArgumentException("Unsupported INFO_TYPE: " + infoType);
1.25 }