完善编排执行命令功能

This commit is contained in:
fofolee
2025-01-05 11:04:20 +08:00
parent e082304c56
commit e94118881a
15 changed files with 505 additions and 59 deletions

View File

@@ -4,7 +4,7 @@ export const simulateCommands = {
defaultOpened: false,
commands: [
{
value: "keyTap",
value: "utools.simulateKeyboardTap",
label: "模拟按键",
config: [],
component: "KeyEditor",

View File

@@ -3,18 +3,6 @@ export const systemCommands = {
icon: "computer",
defaultOpened: false,
commands: [
{
value: "system",
label: "执行系统命令",
config: [
{
key: "command",
label: "要执行的命令行",
type: "varInput",
icon: "terminal",
},
],
},
{
value: "copyTo",
label: "将内容写入剪贴板",
@@ -33,5 +21,13 @@ export const systemCommands = {
config: [],
allowEmptyArgv: true,
},
{
value: "quickcomposer.system.exec",
label: "执行系统命令",
desc: "执行系统命令并返回输出结果",
config: [],
component: "SystemCommandEditor",
icon: "terminal",
},
],
};