zeroed-some/wanda / e265a22

Browse files

wire up inject and cleanup commands in CLI

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
e265a22b977e4b07a02850dd989770c4a99e3f3f
Parents
d7a0681
Tree
20211bd

2 changed files

StatusFile+-
M crates/wanda-cli/src/commands/mod.rs 2 0
M crates/wanda-cli/src/main.rs 10 0
crates/wanda-cli/src/commands/mod.rsmodified
@@ -1,8 +1,10 @@
11
 //! CLI command implementations
22
 
3
+pub mod cleanup;
34
 pub mod config;
45
 pub mod doctor;
56
 pub mod init;
7
+pub mod inject;
68
 pub mod launch;
79
 pub mod prefix;
810
 pub mod scan;
crates/wanda-cli/src/main.rsmodified
@@ -57,6 +57,14 @@ enum Commands {
5757
 
5858
     /// Diagnose issues and generate reports
5959
     Doctor(commands::doctor::DoctorArgs),
60
+
61
+    /// Kill stale Wine/WeMod processes
62
+    Cleanup(commands::cleanup::CleanupArgs),
63
+
64
+    /// Steam launch option wrapper — injects WeMod into the game's Proton session
65
+    ///
66
+    /// Set Steam launch options to: wanda inject %command%
67
+    Inject(commands::inject::InjectArgs),
6068
 }
6169
 
6270
 fn setup_logging(verbose: u8, quiet: bool) {
@@ -92,6 +100,8 @@ async fn main() {
92100
         Commands::Wemod(cmd) => commands::wemod::run(cmd, cli.config).await,
93101
         Commands::Config(cmd) => commands::config::run(cmd, cli.config).await,
94102
         Commands::Doctor(args) => commands::doctor::run(args, cli.config).await,
103
+        Commands::Cleanup(args) => commands::cleanup::run(args, cli.config).await,
104
+        Commands::Inject(args) => commands::inject::run(args, cli.config).await,
95105
     };
96106
 
97107
     if let Err(e) = result {