Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit c67d281

Browse files
authored
Merge pull request #1193 from janhq/j/fix-install-engine-empty-engine-name
fix: empty engine name while install
2 parents 4cc7528 + 79fdc15 commit c67d281

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

engine/controllers/command_line_parser.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "commands/run_cmd.h"
1515
#include "commands/server_stop_cmd.h"
1616
#include "config/yaml_config.h"
17-
#include "httplib.h"
1817
#include "services/engine_service.h"
1918
#include "utils/file_manager_utils.h"
2019
#include "utils/logging_utils.h"
@@ -219,7 +218,7 @@ void CommandLineParser::EngineInstall(CLI::App* parent,
219218
std::string& version) {
220219
auto install_engine_cmd = parent->add_subcommand(engine_name, "");
221220

222-
install_engine_cmd->callback([&] {
221+
install_engine_cmd->callback([=] {
223222
commands::EngineInitCmd eic(engine_name, version);
224223
eic.Exec();
225224
});
@@ -229,7 +228,7 @@ void CommandLineParser::EngineUninstall(CLI::App* parent,
229228
const std::string& engine_name) {
230229
auto uninstall_engine_cmd = parent->add_subcommand(engine_name, "");
231230

232-
uninstall_engine_cmd->callback([&] {
231+
uninstall_engine_cmd->callback([=] {
233232
commands::EngineUninstallCmd cmd(engine_name);
234233
cmd.Exec();
235234
});

0 commit comments

Comments
 (0)