Struct powershell_script::Output
source · pub struct Output { /* private fields */ }
Expand description
A convenient wrapper around process::Output
which indicates if the
script ran successfully or not and gives easy access to both the utf-8
parsed output of stdout
or stderr
.
Implementations§
source§impl Output
impl Output
sourcepub fn stdout(&self) -> Option<String>
pub fn stdout(&self) -> Option<String>
Returns the parsed output of the stdout
capture of the child process
sourcepub fn stderr(&self) -> Option<String>
pub fn stderr(&self) -> Option<String>
Returns the parsed output of the stderr
capture of the child process
sourcepub fn into_inner(self) -> Output
pub fn into_inner(self) -> Output
Returns the raw process::Output
type