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
46
47
48
49
50
// utils/platform.rs
//! # Platform Utility Module
//!
//! This module provides utilities for detecting the operating system platform
//! and retrieving the appropriate binary name for the `stackql` application.
//!
//! ## Features
//! - Detects the current operating system (Windows, macOS, Linux).
//! - Returns the platform-specific `stackql` binary name.
//!
//! ## Example Usage
//! ```rust
//! use crate::utils::platform::{get_platform, get_binary_name, Platform};
//!
//! let platform = get_platform();
//! let binary_name = get_binary_name();
//!
//! println!("Platform: {:?}", platform);
//! println!("Binary Name: {}", binary_name);
//! ```
use crateSTACKQL_BINARY_NAME;
/// Enum representing supported platforms.
/// Determine the current operating system
/// Get the appropriate binary name based on platform