From 5372793a49567dcba7315bf8e7bc5a1cab2d5a76 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 18 Mar 2026 22:49:50 +0800 Subject: Add support for reading from stdin and improve error messages --- src/systems/cmd/cmd_system.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/systems') diff --git a/src/systems/cmd/cmd_system.rs b/src/systems/cmd/cmd_system.rs index 43d5187..a89842b 100644 --- a/src/systems/cmd/cmd_system.rs +++ b/src/systems/cmd/cmd_system.rs @@ -12,6 +12,7 @@ use std::{ any::{TypeId, type_name}, collections::HashMap, future::Future, + path::PathBuf, }; pub type AnyOutput = (Box, TypeId); @@ -21,6 +22,8 @@ pub struct JVCommandContext { pub confirmed: bool, pub args: Vec, pub lang: String, + pub stdin_path: Option, + pub stdin_data: Option>, } pub trait JVCommand -- cgit