Skip to content

Commit

Permalink
Add dynamic config cli (#615)
Browse files Browse the repository at this point in the history
* add dynamic config cli

---------

Co-authored-by: Innokentii Mokin <innokentii@ydb.tech>
  • Loading branch information
Enjection authored Dec 21, 2023
1 parent 3afc4b1 commit b97c74b
Show file tree
Hide file tree
Showing 6 changed files with 799 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ydb/public/lib/ydb_cli/commands/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ SRCS(
tpch.cpp
tpcc_workload.cpp
query_workload.cpp
ydb_admin.cpp
ydb_sdk_core_access.cpp
ydb_command.cpp
ydb_dynamic_config.cpp
ydb_profile.cpp
ydb_root_common.cpp
ydb_service_auth.cpp
Expand All @@ -41,6 +43,7 @@ PEERDIR(
library/cpp/threading/local_executor
ydb/library/backup
ydb/library/workload
ydb/library/yaml_config/public
ydb/public/lib/operation_id
ydb/public/lib/stat_visualization
ydb/public/lib/ydb_cli/common
Expand Down
16 changes: 16 additions & 0 deletions ydb/public/lib/ydb_cli/commands/ydb_admin.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "ydb_admin.h"

#include "ydb_dynamic_config.h"

namespace NYdb {
namespace NConsoleClient {

TCommandAdmin::TCommandAdmin()
: TClientCommandTree("admin", {}, "Administrative cluster operations")
{
AddCommand(std::make_unique<NDynamicConfig::TCommandConfig>());
AddCommand(std::make_unique<NDynamicConfig::TCommandVolatileConfig>());
}

}
}
14 changes: 14 additions & 0 deletions ydb/public/lib/ydb_cli/commands/ydb_admin.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#pragma once

#include "ydb_command.h"

namespace NYdb {
namespace NConsoleClient {

class TCommandAdmin : public TClientCommandTree {
public:
TCommandAdmin();
};

}
}
Loading

0 comments on commit b97c74b

Please sign in to comment.