Hide Windows ps status, bump reedline (#749)

This commit is contained in:
JT 2022-01-16 06:44:24 +11:00 committed by GitHub
parent 89d99db94f
commit 8f4ee14d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

2
Cargo.lock generated
View File

@ -2845,7 +2845,7 @@ dependencies = [
[[package]]
name = "reedline"
version = "0.2.0"
source = "git+https://github.com/nushell/reedline?branch=main#4c3c23c9594ab2d58015fc75beb9fd884b763614"
source = "git+https://github.com/nushell/reedline?branch=main#c0fbcf0ed15a02861e20001c8a38023be4b2c1e6"
dependencies = [
"chrono",
"crossterm",

View File

@ -70,11 +70,15 @@ fn run_ps(engine_state: &EngineState, call: &Call) -> Result<PipelineData, Shell
span,
});
cols.push("status".to_string());
vals.push(Value::String {
val: proc.status(),
span,
});
#[cfg(not(windows))]
{
// Hide status on Windows until we can find a good way to support it
cols.push("status".to_string());
vals.push(Value::String {
val: proc.status(),
span,
});
}
cols.push("cpu".to_string());
vals.push(Value::Float {