Add ability to exclude environments from data export

This commit is contained in:
Gregory Schier
2025-01-11 11:36:00 -08:00
parent 88b410bf99
commit 8dff75ad4f
10 changed files with 59 additions and 41 deletions

View File

@@ -1002,8 +1002,11 @@ async fn cmd_export_data(
window: WebviewWindow,
export_path: &str,
workspace_ids: Vec<&str>,
include_environments: bool,
) -> Result<(), String> {
let export_data = get_workspace_export_resources(window.app_handle(), workspace_ids).await;
let export_data = get_workspace_export_resources(&window, workspace_ids, include_environments)
.await
.map_err(|e| e.to_string())?;
let f = File::options()
.create(true)
.truncate(true)