Bugfix - let PipeController set modes
[kaka/cakelight.git] / src / kaka / cakelight / Console.java
index 5dfe091..89acbbd 100644 (file)
@@ -75,21 +75,21 @@ public class Console extends Thread {
            while (running) {
                System.out.print("> ");
                String input = reader.readLine();
-               internalHandleInput(input);
+               handleInput(input);
            }
        } catch (IOException e) {
            System.out.println("Error reading from command line");
        }
     }
 
-    private void internalHandleInput(String input) {
-       Object obj = handleInput(input);
+    void handleInput(String input) {
+       Object obj = internalHandleInput(input);
        if (obj instanceof Mode) {
            cakelight.setMode((Mode) obj);
        }
     }
 
-    Object handleInput(String input) {
+    Object internalHandleInput(String input) {
        String[] splitInput = input.split("\\s+", 2);
        String name = splitInput[0];
        String[] args = splitInput.length == 2