Update and add new action settings in workflows
- Added new action setting 'finish_task' in auto_command workflow. - Updated the description in 'new_file' action setting in auto_command workflow. - Modified 'run_shell_file' action setting in auto_command workflow to clarify it runs a shell script file. - Added new action settings 'get_project_tree' and 'load_file' in extension_demo workflow.
This commit is contained in:
parent
31fea27cf6
commit
598f91f5ea
14
workflows/auto_command/action/finish/_setting_.json
Normal file
14
workflows/auto_command/action/finish/_setting_.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "finish_task",
|
||||
"description": "Flag task as finished",
|
||||
"type": [
|
||||
"task"
|
||||
],
|
||||
"args": [
|
||||
],
|
||||
"action": "finish_task",
|
||||
"handler": [
|
||||
"echo",
|
||||
"Task finished"
|
||||
]
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "new_file",
|
||||
"description": "create new file or replace file with specified content",
|
||||
"description": "create new file or replace file with new content",
|
||||
"type": [
|
||||
"*"
|
||||
],
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "run_shell_file",
|
||||
"description": "run shell script",
|
||||
"description": "run shell script file",
|
||||
"type": [
|
||||
"shell"
|
||||
],
|
||||
"args": [
|
||||
{
|
||||
"name": "script",
|
||||
"name": "script_file",
|
||||
"description": "shell script file to run",
|
||||
"type": "string",
|
||||
"as": "file",
|
||||
@ -16,6 +16,6 @@
|
||||
"action": "run_shell",
|
||||
"handler": [
|
||||
"bash",
|
||||
"${script}"
|
||||
"${script_file}"
|
||||
]
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "get_project_tree",
|
||||
"description": "Get project file list",
|
||||
"type": ["project"],
|
||||
"action": "get_project_tree",
|
||||
"args": [
|
||||
],
|
||||
"handler": ["git", "ls-files"]
|
||||
}
|
15
workflows/extension_demo/action/load_file/_setting_.json
Normal file
15
workflows/extension_demo/action/load_file/_setting_.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "load_file",
|
||||
"description": "Load file content",
|
||||
"type": ["file"],
|
||||
"action": "load_file",
|
||||
"args": [
|
||||
{
|
||||
"name": "fileName",
|
||||
"description": "Specify the file, which content will be loaded",
|
||||
"type": "string",
|
||||
"from": "content.content.fileName"
|
||||
}
|
||||
],
|
||||
"handler": ["cat", "${fileName}"]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user