mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-08-04 18:48:12 +00:00
fix: system command filtering
This commit is contained in:
parent
b7b81013ba
commit
63bc401d8e
1 changed files with 2 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue