java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java
branchv_0
changeset 15 bbd335b5410c
parent 14 189b1260b942
child 16 5b8fcd35d4d6
--- a/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java	Mon Dec 16 15:15:32 2013 +0100
+++ b/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java	Mon Dec 16 15:29:02 2013 +0100
@@ -10,7 +10,8 @@
  */
 public class InfoLister {
 
-	public void showInfo(EnumSet<CLIOptions.INFO_TYPE> infoTypes, PrintStream out) {
+	public void showInfo(CLIOptions options, PrintStream out) {
+		EnumSet<CLIOptions.INFO_TYPE> infoTypes = options.getShowInfo();
 		for (CLIOptions.INFO_TYPE infoType : infoTypes) {
 			switch (infoType) {
 				/**
@@ -31,6 +32,12 @@
 				case VERSION:
 					out.println("TODO: show version");
 					break;
+				case DATABASES:
+					out.println("TODO: list databases");
+					break;
+				case CONNECTION:
+					out.println("TODO: test database connection: " + options.getDatabaseNameToTest());
+					break;
 				default:
 					throw new IllegalArgumentException("Unsupported INFO_TYPE: " + infoType);
 			}