Skip to main content

ralph_workflow/platform/
mod.rs

1//! Platform detection and installation guidance
2//!
3//! Provides OS-specific detection for platform-dependent behavior.
4mod detection;
5
6/// Detected platform type
7///
8/// This enum is `pub(crate)` because it is only used internally by
9/// platform-specific helpers (e.g. clipboard handling). External code
10/// should rely on higher-level helpers rather than matching on platform.
11#[derive(Debug, Clone, Copy, PartialEq, Eq)]
12pub enum Platform {
13    /// macOS with Homebrew available
14    MacWithBrew,
15    /// macOS without Homebrew
16    MacWithoutBrew,
17    /// Debian/Ubuntu Linux (apt-based)
18    DebianLinux,
19    /// RHEL/Fedora Linux (dnf-based)
20    RhelLinux,
21    /// Arch Linux (pacman-based)
22    ArchLinux,
23    /// Generic Linux (unknown package manager)
24    GenericLinux,
25    /// Windows
26    Windows,
27    /// Unknown platform
28    Unknown,
29}