pub fn runner(chain: &[Proc]) -> Option<&Proc>Expand description
The program that ran the process whose ancestors are chain, read up
to the session ([ends_the_walk]), which is never the program: the
nearest harness ([crate::is_harness_process]), so a uv, npx or
node that only started the hook and exits with it does not outrank
the harness above it; else the nearest one that is neither a shell
nor a wrapper, which keeps a harness that runs as plain node; else
the outermost of the shells and wrappers below the session. None
when the session ran the process itself.