|
1 | | -pub use crate::main::{Commands, UnpackCommands, SystemCommands, RunCommands}; |
| 1 | +mod commands; |
| 2 | +mod game; |
| 3 | +mod help; |
| 4 | +mod utils; |
| 5 | + |
| 6 | +pub use commands::{handle_unpack, handle_system, handle_run}; |
| 7 | +pub use game::play_game; |
| 8 | +pub use help::display_help; |
| 9 | +pub use utils::{handle_update, run_command_with_spinner}; |
| 10 | + |
| 11 | +use clap::Subcommand; |
| 12 | + |
| 13 | +#[derive(Subcommand)] |
| 14 | +pub enum UnpackCommands { |
| 15 | + /// Install add-ons (Wine, BoxBuddy, Winezgui, Gearlever) |
| 16 | + AddOns, |
| 17 | + /// Install both gaming and cybersecurity tools |
| 18 | + GS, |
| 19 | + /// Install development tools (Atom) |
| 20 | + Devtools, |
| 21 | + /// Install emulators (PlayStation, Nintendo, DOSBox, PS3) |
| 22 | + Emulators, |
| 23 | + /// Install cybersecurity tools (nmap, wireshark, Metasploit, Ghidra, etc.) |
| 24 | + Cybersecurity, |
| 25 | + /// Interactive UI for selecting individual packages |
| 26 | + Select, |
| 27 | + /// Install gaming tools (OBS Studio, Lutris, Steam, etc.) with Roblox |
| 28 | + Gaming, |
| 29 | + /// Install gaming tools without Roblox |
| 30 | + Noroblox, |
| 31 | + /// Install gamescope for hacker mode |
| 32 | + HackerMode, |
| 33 | +} |
| 34 | + |
| 35 | +#[derive(Subcommand)] |
| 36 | +pub enum SystemCommands { |
| 37 | + /// Show system logs |
| 38 | + Logs, |
| 39 | +} |
| 40 | + |
| 41 | +#[derive(Subcommand)] |
| 42 | +pub enum RunCommands { |
| 43 | + /// Run HackerOS Cockpit |
| 44 | + HackerosCockpit, |
| 45 | + /// Switch to another session |
| 46 | + SwitchToOtherSession, |
| 47 | + /// Update the system |
| 48 | + UpdateSystem, |
| 49 | + /// Check for system updates |
| 50 | + CheckUpdates, |
| 51 | + /// Launch Steam via HackerOS script |
| 52 | + Steam, |
| 53 | + /// Launch HackerOS Launcher |
| 54 | + HackerLauncher, |
| 55 | +} |
0 commit comments