diff options
| -rw-r--r-- | src/command.cpp | 5 | ||||
| -rw-r--r-- | src/command.hpp | 2 | ||||
| -rw-r--r-- | src/wandac.cpp | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp index 05784b3..6831d5e 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -40,4 +40,9 @@ std::optional<command> make_command(message message) return std::nullopt; } +command make_change_command() +{ + return {command_id::change}; +} + } // namespace wanda
\ No newline at end of file diff --git a/src/command.hpp b/src/command.hpp index 54bf02d..5fac065 100644 --- a/src/command.hpp +++ b/src/command.hpp @@ -24,6 +24,8 @@ struct command std::optional<command> make_command(message message); +command make_change_command(); + } // namespace wanda #endif
\ No newline at end of file diff --git a/src/wandac.cpp b/src/wandac.cpp index 0f1d15d..6f57e96 100644 --- a/src/wandac.cpp +++ b/src/wandac.cpp @@ -60,7 +60,7 @@ struct listener : wanda::commander::listener { if (m_cli.command == "change") { - commander.send({wanda::command_id::change}); + commander.send(wanda::make_change_command()); commander.stop(); } } |
