Skip to content

Commit bb68241

Browse files
committed
add dynamic config cli
1 parent c3ff64d commit bb68241

File tree

6 files changed

+813
-0
lines changed

6 files changed

+813
-0
lines changed

ydb/public/lib/ydb_cli/commands/ya.make

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ SRCS(
1414
tpch.cpp
1515
tpcc_workload.cpp
1616
query_workload.cpp
17+
ydb_admin.cpp
1718
ydb_sdk_core_access.cpp
1819
ydb_command.cpp
20+
ydb_dynamic_config.cpp
1921
ydb_profile.cpp
2022
ydb_root_common.cpp
2123
ydb_service_auth.cpp
@@ -41,6 +43,7 @@ PEERDIR(
4143
library/cpp/threading/local_executor
4244
ydb/library/backup
4345
ydb/library/workload
46+
ydb/library/yaml_config/public
4447
ydb/public/lib/operation_id
4548
ydb/public/lib/stat_visualization
4649
ydb/public/lib/ydb_cli/common
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include "ydb_admin.h"
2+
3+
#include "ydb_dynamic_config.h"
4+
5+
namespace NYdb {
6+
namespace NConsoleClient {
7+
8+
TCommandAdmin::TCommandAdmin()
9+
: TClientCommandTree("admin", {}, "Administrative cluster operations")
10+
{
11+
AddCommand(std::make_unique<NDynamicConfig::TCommandConfig>());
12+
AddCommand(std::make_unique<NDynamicConfig::TCommandVolatileConfig>());
13+
}
14+
15+
}
16+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#pragma once
2+
3+
#include "ydb_command.h"
4+
5+
namespace NYdb {
6+
namespace NConsoleClient {
7+
8+
class TCommandAdmin : public TClientCommandTree {
9+
public:
10+
TCommandAdmin();
11+
};
12+
13+
}
14+
}

0 commit comments

Comments
 (0)