From 37e991b7eb1f57090b98ebc02a7fad6a4971e876 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 8 Dec 2025 20:11:22 +0800 Subject: Add jvii binary and set default text editor - Add jvii as a new binary target in Cargo configuration - Set JV_TEXT_EDITOR environment variable to "nano" in CLI scripts - Implement jvii binary with version command support - Add get_default_editor() utility that checks JV_TEXT_EDITOR, EDITOR, then defaults to "jvii" --- src/bin/jvii.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/bin/jvii.rs (limited to 'src/bin/jvii.rs') diff --git a/src/bin/jvii.rs b/src/bin/jvii.rs new file mode 100644 index 0000000..e7a20bb --- /dev/null +++ b/src/bin/jvii.rs @@ -0,0 +1,19 @@ +#[derive(Parser, Debug)] +#[command( + disable_help_flag = true, + disable_version_flag = true, + disable_help_subcommand = true, + help_template = "{all-args}" +)] + +struct JustEnoughVcsInputer { + #[command(subcommand)] + command: JustEnoughVcsInputerCommand, +} + +#[derive(Subcommand, Debug)] +enum JustEnoughVcsInputerCommand { + /// Version information + #[command(alias = "--version", alias = "-v")] + Version(VersionArgs), +} -- cgit