From 78f5d8cf644383adf20933ad64c160c07c2c54fb Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 20 Mar 2022 13:17:16 +0100 Subject: refactor: improve input configuring structure --- src/commands/quit.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/commands/quit.cpp (limited to 'src/commands/quit.cpp') 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 + +void QuitCommand::execute() noexcept +{ + exit(EXIT_SUCCESS); +} -- cgit v1.2.3-18-g5258