aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInnokentii Mokin <innokentii@ydb.tech>2024-01-30 18:30:24 +0300
committerGitHub <noreply@github.com>2024-01-30 18:30:24 +0300
commit42c0a059d738d8b9a683385d013cb5724244ea5f (patch)
tree100780e00050cae2478978e90224c7e22992fe8c
parent093c9af3a29c8f04b143664654e53db847321bef (diff)
downloadydb-42c0a059d738d8b9a683385d013cb5724244ea5f.tar.gz
Remove outdated ydbd serverconfig option (#1422)
-rw-r--r--ydb/core/driver_lib/cli_utils/cli_cmds_server.cpp27
1 files changed, 0 insertions, 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 86aed2596c..b7a8f9df61 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 @@ private:
}
};
-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<TModuleFactories> factories)
@@ -1554,7 +1528,6 @@ private:
void AddClientCommandServer(TClientCommandTree& parent, std::shared_ptr<TModuleFactories> factories) {
parent.AddCommand(std::make_unique<TClientCommandServer>(factories));
- parent.AddCommand(std::make_unique<TClientCommandServerConfig>());
}
}