Skip to content

Commit

Permalink
temporary remove cli
Browse files Browse the repository at this point in the history
  • Loading branch information
namchuai committed Oct 31, 2024
1 parent 8a31f11 commit ccf9875
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
15 changes: 0 additions & 15 deletions engine/cli/command_line_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -326,21 +326,6 @@ void CommandLineParser::SetupEngineCommands() {
std::stoi(cml_data_.config.apiServerPort));
});

auto installv2_cmd = engines_cmd->add_subcommand("release", "Install engine");
installv2_cmd->group(kSubcommands);
installv2_cmd->callback([this, installv2_cmd] {
if (std::exchange(executed_, true))
return;
if (installv2_cmd->get_subcommands().empty()) {
CLI_LOG("[engine_name] is required\n");
CLI_LOG(installv2_cmd->help());
}
});
for (auto& engine : engine_service_.kSupportEngines) {
std::string engine_name{engine};
EngineInstallV2(installv2_cmd, engine_name);
}

auto install_cmd = engines_cmd->add_subcommand("install", "Install engine");
install_cmd->usage("Usage:\n" + commands::GetCortexBinary() +
" engines install [engine_name] [options]");
Expand Down
2 changes: 0 additions & 2 deletions engine/cli/command_line_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class CommandLineParser {

void SetupSystemCommands();

void EngineInstallV2(CLI::App* parent, const std::string& engine_name);

void EngineInstall(CLI::App* parent, const std::string& engine_name,
std::string& version, std::string& src);

Expand Down

0 comments on commit ccf9875

Please sign in to comment.