feat: runner fields public

This commit is contained in:
Gabriele Musco 2023-06-05 07:12:19 +02:00
commit 9b4dc282c4
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE

View file

@ -1,20 +1,18 @@
use std::{ use std::{
collections::HashMap, collections::HashMap,
fs::{create_dir_all, OpenOptions}, io::{BufRead, BufReader, Write},
io::{BufRead, BufReader, BufWriter, Write},
path::Path,
process::{Child, Command, Stdio}, process::{Child, Command, Stdio},
}; };
use crate::{profile::Profile, file_utils::get_writer}; use crate::{profile::Profile, file_utils::get_writer};
pub struct Runner { pub struct Runner {
environment: HashMap<String, String>, pub environment: HashMap<String, String>,
command: String, pub command: String,
args: Vec<String>, pub args: Vec<String>,
stdout: Vec<String>, pub stdout: Vec<String>,
stderr: Vec<String>, pub stderr: Vec<String>,
process: Option<Child>, pub process: Option<Child>,
} }
#[derive(PartialEq, Eq, Debug)] #[derive(PartialEq, Eq, Debug)]