xcommand 0.1.0

Run a command, forcing pty allocation, and stream the output
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use eyre::Result;
use std::ffi::CString;

#[derive(Debug)]
pub struct EnvVar {
    pub key: CString,
    pub value: CString,
}
impl EnvVar {
    pub fn from_str_pair(key: &str, value: &str) -> Result<Self> {
        Ok(EnvVar {
            key: CString::new(key)?,
            value: CString::new(value)?,
        })
    }
}