pub fn format_task_stats_csv(stats: &HashMap<String, usize>) -> Vec<Vec<String>>Expand description
Format task statistics as CSV rows
§Arguments
stats- Map of task statistics (task_type -> count)
§Examples
use std::collections::HashMap;
use celers_cli::command_utils::format_task_stats_csv;
let mut stats = HashMap::new();
stats.insert("process_data".to_string(), 100);
stats.insert("send_email".to_string(), 50);
let rows = format_task_stats_csv(&stats);
assert_eq!(rows.len(), 2);