From 539c48aa2a791aa0a6d805bc030afb45d50c0b22 Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Mon, 12 May 2025 20:37:25 -0300 Subject: [PATCH] refactor: Replace stdin field with process field in DigestEngineProgram --- src/digest_engine/program.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/digest_engine/program.rs b/src/digest_engine/program.rs index acc2d03..d6b3b2f 100644 --- a/src/digest_engine/program.rs +++ b/src/digest_engine/program.rs @@ -16,18 +16,19 @@ pub struct DigestEngineProgram { pub program: String, pub args: Vec, pub supported: bool, - pub stdin: Option>, + process: Option, } impl DigestEngineProgram { pub fn new(program: &str, args: Vec<&str>) -> DigestEngineProgram { let program_path = get_program_path(program); let supported = program_path.is_ok(); + DigestEngineProgram { program: program_path.unwrap_or(program.to_string()), args: args.iter().map(|s| s.to_string()).collect(), supported, - stdin: None, + process: None, } } }