Add --no-editor

This commit is contained in:
mo8it
2026-04-07 00:10:25 +02:00
parent b5fbf59c0c
commit 432d1f84ea
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -8,6 +8,10 @@ use crate::dev::DevCommand;
pub struct Args {
#[command(subcommand)]
pub command: Option<Command>,
/// Disable automatic opening of the current file in VS Code or Zellij.
/// Ignores `--edit-cmd`
#[arg(long)]
pub no_editor: bool,
/// Open the current exercise by running `EDIT_CMD EXERCISE_PATH`.
/// The command is not allowed to block (e.g. `vim`).
/// It should communicate with an editor in a different process.