Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[node-core-library] Add ability to list processes on Windows and Unix-based platforms #4443

Merged
merged 16 commits into from
Dec 7, 2023

Conversation

D4N14L
Copy link
Member

@D4N14L D4N14L commented Dec 5, 2023

Summary

Add the ability to list out processes and their child process tree for Windows and Unix-based systems.

Details

While there exists a few different tools that can accomplish similar tasks (ex. ps-tree, ps-list), these tools are missing some functionality. For example, ps-tree is able to return the child tree of a specific process ID, but is unable to list out all processes. ps-list can list out all processes, but does not build a child tree. Additionally, ps-list is not bundlable due to it's dependency on the fastlist binary on Windows.

This PR brings all this functionality under the same method.

How it was tested

  • Tested on Windows and Ubuntu
  • Added tests

@D4N14L D4N14L changed the title [node-core-library] Add ability to list processes on win32 and unix-based platforms [node-core-library] Add ability to list processes on Windows and Unix-based platforms Dec 5, 2023
libraries/node-core-library/src/Executable.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Text.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Text.ts Outdated Show resolved Hide resolved
common/reviews/api/node-core-library.api.md Outdated Show resolved Hide resolved
common/reviews/api/node-core-library.api.md Outdated Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Outdated Show resolved Hide resolved
libraries/node-core-library/src/Executable.ts Show resolved Hide resolved
@iclanton iclanton enabled auto-merge December 7, 2023 02:17
@iclanton iclanton merged commit d39d41f into microsoft:main Dec 7, 2023
5 checks passed
@iclanton iclanton deleted the user/danade/ListProcesses branch December 7, 2023 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants