Skip to content

deduplicate process names #41

@supervoidcoder

Description

@supervoidcoder

in the original witr, it tells you if you typed a process name that has two or more pids under the same name. the function i stole from some random tutorial stops as soon as it finds one process so i need to spit out all the pids.

this is how witr does it:

witr ng
Multiple matching processes found:

[1] nginx (pid 2311)
    nginx -g daemon off;
[2] nginx (pid 24891)
    nginx -g daemon off;
[3] ngrok (pid 14233)
    ngrok http 5000

Re-run with:
  witr --pid <pid>

i think it's a little unhelpful to do exaxtly like witr, because yeah it's just annoying lol but if we want to maintain the same capabalities then sure i guess? it makes sense but we could do other things, like list the other processes in the same tree

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions