fix: system command filtering
Some checks are pending
CI / build-test (macos-14) (push) Waiting to run
CI / build-test (ubuntu-24.04) (push) Waiting to run
CI / build-test (windows-latest) (push) Waiting to run

This commit is contained in:
Huakun Shen 2025-01-27 23:10:05 -05:00
parent b7b81013ba
commit 63bc401d8e
No known key found for this signature in database

View file

@ -371,8 +371,9 @@ export const rawSystemCommands = [
]
export function getSystemCommands(): SysCommand[] {
const _platform = platform()
return rawSystemCommands
.filter(async (cmd) => cmd.platforms.includes(platform())) // Filter out system commands that are not supported on the current platform
.filter((cmd) => cmd.platforms.includes(_platform)) // Filter out system commands that are not supported on the current platform
.map((cmd) => ({
name: cmd.name,
value: "system-cmd" + cmd.name.split(" ").join("-").toLowerCase(),