forked from extern/nushell
Add ppid example for ps (#8768)
# Description Add an extra example for the `ps` command # User-Facing Changes Only adds this example:  # Tests + Formatting N/A # After Submitting This is related to https://github.com/nushell/nushell.github.io/pull/864 Co-authored-by: Jelle Besseling <jelle@bigbridge.nl>
This commit is contained in:
parent
5518ffd248
commit
8a030f3bfc
@ -67,6 +67,11 @@ impl Command for Ps {
|
||||
example: "ps | where name =~ 'nu'",
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Get the parent process id of the current nu process",
|
||||
example: "ps | where pid == $nu.pid | get ppid",
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user