Added build script

This commit is contained in:
2026-10-09 09:46:32 -04:00
parent fd8bb16d40
commit cf2cc9f8ed
13 changed files with 50 additions and 35 deletions
+2 -3
View File
@@ -11,8 +11,7 @@ pub struct ExportRequest {
#[tauri::command]
pub async fn export_csv(request: ExportRequest) -> Result<(), String> {
let file = File::create(&request.path)
.map_err(|e| format!("Failed to create file: {}", e))?;
let file = File::create(&request.path).map_err(|e| format!("Failed to create file: {}", e))?;
let mut writer = csv::Writer::from_writer(file);
@@ -43,4 +42,4 @@ pub async fn export_csv(request: ExportRequest) -> Result<(), String> {
tracing::info!("Exported {} hosts to {}", request.hosts.len(), request.path);
Ok(())
}
}