From 707192903eb1941676c77c97fd12815b82baef85 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 19 Mar 2026 20:55:15 +0545 Subject: [PATCH] feat(src): add Run subcommand tolaunch applications on discrete GPU - New Features - Introduce `Run` command with trailing var argument support for executing commands on the discrete GPU (requires Hybrid Mode) - Enhancements - Update CLI parsing to accept a vector of command strings - Bug Fixes - None --- src/cli.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index 7b086e5..1107f6d 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -110,6 +110,12 @@ pub enum GpuCommands { CacheDelete, /// Show cache created by lapctl CacheQuery, + /// Run an application on the discrete GPU (Requires Hybrid Mode) + Run { + /// The command and arguments to execute + #[arg(trailing_var_arg = true, allow_hyphen_values = true)] + command: Vec, + }, } #[derive(Subcommand, Debug)]