con.printf(PROMPT);
while (true) {
String input = con.readLine(">");
if ("quit".equals(input)) break;
Command cmd = client.parseCommand(input);
if (cmd == null) {
con.printf("Unable to perform the requested action.\n");
} else {
cmd.execute(con, input);
}
}
}