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 @@
1
 //! CLI command implementations
1
 //! CLI command implementations
2
 
2
 
3
+pub mod cleanup;
3
 pub mod config;
4
 pub mod config;
4
 pub mod doctor;
5
 pub mod doctor;
5
 pub mod init;
6
 pub mod init;
7
+pub mod inject;
6
 pub mod launch;
8
 pub mod launch;
7
 pub mod prefix;
9
 pub mod prefix;
8
 pub mod scan;
10
 pub mod scan;
crates/wanda-cli/src/main.rsmodified
@@ -57,6 +57,14 @@ enum Commands {
57
 
57
 
58
     /// Diagnose issues and generate reports
58
     /// Diagnose issues and generate reports
59
     Doctor(commands::doctor::DoctorArgs),
59
     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),
60
 }
68
 }
61
 
69
 
62
 fn setup_logging(verbose: u8, quiet: bool) {
70
 fn setup_logging(verbose: u8, quiet: bool) {
@@ -92,6 +100,8 @@ async fn main() {
92
         Commands::Wemod(cmd) => commands::wemod::run(cmd, cli.config).await,
100
         Commands::Wemod(cmd) => commands::wemod::run(cmd, cli.config).await,
93
         Commands::Config(cmd) => commands::config::run(cmd, cli.config).await,
101
         Commands::Config(cmd) => commands::config::run(cmd, cli.config).await,
94
         Commands::Doctor(args) => commands::doctor::run(args, cli.config).await,
102
         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,
95
     };
105
     };
96
 
106
 
97
     if let Err(e) = result {
107
     if let Err(e) = result {