Skip to main content

launcher/state/
operation.rs

1use supreme_diagnostics::PathDiagnostics;
2
3#[derive(Clone)]
4pub enum OperationType {
5    Dependency,
6    Helpers,
7}
8
9pub struct UnifiedOperation {
10    pub operation_type: OperationType,
11    pub is_running: bool,
12    pub status: String,
13    pub logs: Vec<String>,
14    pub total_items: usize,
15    pub processed_items: usize,
16    pub diagnostics: Option<PathDiagnostics>,
17}
18
19impl Default for UnifiedOperation {
20    fn default() -> Self {
21        Self {
22            operation_type: OperationType::Dependency,
23            is_running: false,
24            status: "Ready".to_string(),
25            logs: Vec::new(),
26            total_items: 0,
27            processed_items: 0,
28            diagnostics: None,
29        }
30    }
31}