From 42c0a059d738d8b9a683385d013cb5724244ea5f Mon Sep 17 00:00:00 2001 From: Innokentii Mokin Date: Tue, 30 Jan 2024 18:30:24 +0300 Subject: [PATCH] Remove outdated ydbd serverconfig option (#1422) --- .../driver_lib/cli_utils/cli_cmds_server.cpp | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/ydb/core/driver_lib/cli_utils/cli_cmds_server.cpp b/ydb/core/driver_lib/cli_utils/cli_cmds_server.cpp index 86aed2596c56..b7a8f9df6163 100644 --- a/ydb/core/driver_lib/cli_utils/cli_cmds_server.cpp +++ b/ydb/core/driver_lib/cli_utils/cli_cmds_server.cpp @@ -1510,32 +1510,6 @@ class TClientCommandServerBase : public TClientCommand { } }; -class TClientCommandServerConfig : public TClientCommandServerBase { -public: - TClientCommandServerConfig() - : TClientCommandServerBase("serverconfig", "Generate configs for new-style invocation of server") - { - } - - virtual void Config(TConfig& config) override { - TClientCommandServerBase::Config(config); - config.Opts->AddLongOption("dump-config-to", "Dump final application config protobuf to PATH and terminate").RequiredArgument("PATH").Required(); - } - - virtual int Run(TConfig& config) override { - Y_ABORT_UNLESS(config.ParseResult->Has("dump-config-to")); - - TString proto; - const bool status = google::protobuf::TextFormat::PrintToString(AppConfig, &proto); - Y_ABORT_UNLESS(status); - TString path = config.ParseResult->Get("dump-config-to"); - TFileOutput file(path); - file << proto; - - return 0; - } -}; - class TClientCommandServer : public TClientCommandServerBase { public: TClientCommandServer(std::shared_ptr factories) @@ -1554,7 +1528,6 @@ class TClientCommandServer : public TClientCommandServerBase { void AddClientCommandServer(TClientCommandTree& parent, std::shared_ptr factories) { parent.AddCommand(std::make_unique(factories)); - parent.AddCommand(std::make_unique()); } }