Support VSCode and --edit-cmd as editor

This commit is contained in:
mo8it
2026-04-06 16:58:15 +02:00
parent 4d97c31c0f
commit c9ccedcff6
7 changed files with 238 additions and 134 deletions
+4 -3
View File
@@ -8,13 +8,14 @@ use crate::dev::DevCommand;
pub struct Args {
#[command(subcommand)]
pub command: Option<Command>,
/// Open the current exercise by running the provided `EDIT_CMD EXERCISE_NAME`.
/// Ignored in VS Code
#[arg(long)]
pub edit_cmd: Option<String>,
/// Manually run the current exercise using `r` in the watch mode.
/// Only use this if Rustlings fails to detect exercise file changes
#[arg(long)]
pub manual_run: bool,
/// Open the current exercise in a new Zellij pane and close the last one if exists
#[arg(long)]
pub zellij: bool,
}
#[derive(Subcommand)]