mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-05 15:48:45 +00:00
feat: runner fields public
This commit is contained in:
parent
742a40f694
commit
9b4dc282c4
1 changed files with 7 additions and 9 deletions
|
@ -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)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue