diff --git a/src/main/java/com/cominatyou/console/Console.java b/src/main/java/com/cominatyou/console/Console.java index a5e1fab..376dedf 100644 --- a/src/main/java/com/cominatyou/console/Console.java +++ b/src/main/java/com/cominatyou/console/Console.java @@ -23,6 +23,7 @@ public class Console { entry("send", new Send()), entry("cc", new ChangeChannel()), entry("edit", new Edit()), + entry("exit", new Exit()), entry("clear", new Clear()) ); diff --git a/src/main/java/com/cominatyou/console/consolecommands/Exit.java b/src/main/java/com/cominatyou/console/consolecommands/Exit.java new file mode 100644 index 0000000..03d905a --- /dev/null +++ b/src/main/java/com/cominatyou/console/consolecommands/Exit.java @@ -0,0 +1,11 @@ +package com.cominatyou.console.consolecommands; + +import java.util.List; + +public class Exit implements ConsoleCommand { + @Override + public void execute(List args) { + System.exit(0); + } + +}