Skip to content

updates for windows 11 #30

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

updates for windows 11 #30

wants to merge 2 commits into from

Conversation

camhart
Copy link

@camhart camhart commented Apr 17, 2025

removed wmic, replaced with powershell calls.

camhart added 2 commits April 17, 2025 18:28
removed wmic, replaced with powershell calls.
bumping version number
@huan huan requested a review from Copilot April 18, 2025 08:28
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates Windows support by removing the legacy WMIC-based process fetching and replacing it with PowerShell calls. Key changes include:

  • Removal of WMIC-related tests and code.
  • Addition of tests and implementation for fetching processes using PowerShell.
  • Update of the platform mapping in lib/get.js to use the new PowerShell approach.

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/wmic.js Removed tests for WMIC in favor of PowerShell implementation.
test/powershell.js Added new tests to validate PowerShell output and error handling.
lib/wmic.js Removed WMIC module as it is no longer used.
lib/powershell.js Introduced new module for process fetching using PowerShell.
lib/get.js Updated platform mapping to use PowerShell instead of WMIC for win.
Files not reviewed (1)
  • package.json: Language not supported

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.

1 participant