mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-03 08:43:30 +02:00
Support VSCode and --edit-cmd as editor
This commit is contained in:
+4
-3
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user