mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-30 18:45:55 +08:00
812f39b159
Tauri CLI 自动检测 workspace 成员,构建不受影响。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
11 lines
493 B
Rust
11 lines
493 B
Rust
use path_editor_core::registry;
|
|
|
|
#[tauri::command]
|
|
pub fn load_system_paths() -> Result<Vec<String>, String> { registry::load_system_paths() }
|
|
#[tauri::command]
|
|
pub fn load_user_paths() -> Result<Vec<String>, String> { registry::load_user_paths() }
|
|
#[tauri::command]
|
|
pub fn save_system_paths(paths: Vec<String>) -> Result<(), String> { registry::save_system_paths(paths) }
|
|
#[tauri::command]
|
|
pub fn save_user_paths(paths: Vec<String>) -> Result<(), String> { registry::save_user_paths(paths) }
|