feat: diagnostic exports

This commit is contained in:
2025-04-30 21:19:15 +00:00
parent edef5cc6dc
commit 2e17e0ae75
7 changed files with 83 additions and 16 deletions

View File

@ -480,13 +480,18 @@ pub async fn create_shortcut(_app: AppHandle, profile_meta: ProfileMeta) -> Resu
}
#[tauri::command]
pub async fn export_profile(state: State<'_, Mutex<AppData>>, export_keychip: bool, files: Vec<String>) -> Result<(), String> {
pub async fn export_profile(
state: State<'_, Mutex<AppData>>,
is_diagnostic: bool,
export_keychip: bool,
files: Vec<String>
) -> Result<(), String> {
log::debug!("invoke: export_profile({:?}, {:?} files)", export_keychip, files.len());
let appd = state.lock().await;
match &appd.profile {
Some(p) => {
p.export(export_keychip, files)
p.export(export_keychip, files, is_diagnostic)
.map_err(|e| e.to_string())?;
}
None => {