summaryrefslogtreecommitdiff
path: root/src/systems
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-18 22:49:50 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-18 22:49:50 +0800
commit5372793a49567dcba7315bf8e7bc5a1cab2d5a76 (patch)
tree96d13d527835c23b978eae470e54a1d5fd15bc6d /src/systems
parent2609dfe338b9bace6ff74c5efc93f684ba55a44e (diff)
Add support for reading from stdin and improve error messages
Diffstat (limited to 'src/systems')
-rw-r--r--src/systems/cmd/cmd_system.rs3
1 files changed, 3 insertions, 0 deletions
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<dyn std::any::Any + Send + 'static>, TypeId);
@@ -21,6 +22,8 @@ pub struct JVCommandContext {
pub confirmed: bool,
pub args: Vec<String>,
pub lang: String,
+ pub stdin_path: Option<PathBuf>,
+ pub stdin_data: Option<Vec<u8>>,
}
pub trait JVCommand<Argument, Input, Collect>