1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use Result;
use Parser;
use showcase;
use PathBuf;
/// Deloxide CLI - Cross-Language Deadlock Detector with Visualization
///
/// This command-line tool provides visualization functionality for deadlock detection logs
/// generated by the Deloxide library. It processes a log file and opens a web browser to
/// display the thread-lock relationships in an interactive visualization.
///
/// The visualization helps you understand the patterns that led to a deadlock, making it
/// easier to diagnose and fix concurrency issues in your application.
/// Main entry point for the Deloxide CLI application
///
/// This function parses command-line arguments and launches the visualization
/// for the specified log file.
///
/// # Returns
/// A Result that is Ok if the visualization was successful, or an error if it failed
///
/// # Errors
/// Returns an error if:
/// - The log file could not be read
/// - The log file could not be processed
/// - The browser could not be opened