Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic config cli #615

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading