diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-18 22:49:50 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-18 22:49:50 +0800 |
| commit | 5372793a49567dcba7315bf8e7bc5a1cab2d5a76 (patch) | |
| tree | 96d13d527835c23b978eae470e54a1d5fd15bc6d /src/systems/cmd | |
| parent | 2609dfe338b9bace6ff74c5efc93f684ba55a44e (diff) | |
Add support for reading from stdin and improve error messages
Diffstat (limited to 'src/systems/cmd')
| -rw-r--r-- | src/systems/cmd/cmd_system.rs | 3 |
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> |
