feat: add the management of config_store_snapshot (#2271)

This commit is contained in:
韩嘉乐
2026-05-22 01:54:43 +08:00
committed by GitHub
parent d5fa6a608d
commit 0378191783
4 changed files with 249 additions and 25 deletions
@@ -44,3 +44,11 @@ pub(crate) fn import_toml(toml_text: String, display_name: Option<String>) -> Op
pub(crate) fn export_toml(config_id: String) -> Option<String> {
config::repository::export_config_toml(&config_id).map(|ret| ret.toml_text)
}
pub(crate) fn export_config_store_snapshot(target_path: String) -> bool {
config::storage::config_meta::export_config_store_snapshot(target_path)
}
pub(crate) fn import_config_store_snapshot(source_path: String) -> bool {
config::storage::config_meta::import_config_store_snapshot(source_path)
}