aboutsummaryrefslogtreecommitdiff
path: root/src/commands/quit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/quit.cpp')
-rw-r--r--src/commands/quit.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/commands/quit.cpp b/src/commands/quit.cpp
new file mode 100644
index 0000000..c2a68e7
--- /dev/null
+++ b/src/commands/quit.cpp
@@ -0,0 +1,8 @@
+#include "quit.hpp"
+
+#include <cstdlib>
+
+void QuitCommand::execute() noexcept
+{
+ exit(EXIT_SUCCESS);
+}