-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
169 lines (169 loc) · 4.61 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
"name": "script-runner",
"displayName": "cmd exec",
"description": "Run command line scripts (with parameters) directly from #VSCode with a configured form. Create and customize your own commands to simplify your way of working.",
"icon": "resources/logo/icon_128.gif",
"version": "0.9.0",
"repository": {
"type": "git",
"url": "https://github.com/easterapps/vscode-script-runner"
},
"publisher": "easterapps",
"engines": {
"vscode": "^1.57.0"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test": "npm run compile && node ./node_modules/vscode/bin/test",
"package": "vsce package"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.3",
"@types/vscode": "^1.57.0",
"glob": "^7.1.7",
"mocha": "^8.4.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.1.0",
"typescript": "^4.3.2",
"vscode-test": "^1.5.2"
},
"categories": [
"Other"
],
"keywords": [
"shell",
"command line",
"script",
"commands",
"terminal",
"form",
"run",
"runner",
"file",
"bash",
"shell",
"sh",
"cmd"
],
"activationEvents": [
"*",
"onCommand:script-runner.run",
"onCommand:script-runner.create"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"category": "Script Runner",
"command": "script-runner.run",
"title": "Run"
}
],
"configuration": {
"title": "Script Runner",
"properties": {
"script-runner.statusBar": {
"type": "boolean",
"default": false,
"description": "Shortcut in Bottom Status Bar"
},
"script-runner.customShell.enabled": {
"type": "boolean",
"default": false,
"description": "Use a different shell, defined in script-runner.customShell.path"
},
"script-runner.customShell.path": {
"type": "string",
"default": "/bin/sh",
"description": "Shell to execute the command with"
},
"script-runner.definitions": {
"type": "object",
"properties": {
"commands": {
"type": "array",
"description": "List of commands.",
"items": {
"type": "object",
"properties": {
"identifier": {
"type": "string",
"description": "Identifier used to do key binding. Use alphanumerical and hyphen/underscore only.",
"required": true
},
"description": {
"type": "string",
"description": "Description of the command.",
"required": true
},
"command": {
"type": "string",
"description": "Command to execute (with variables).",
"required": true
},
"working_directory": {
"type": "string",
"description": "The working directory in which to execute the script."
},
"form": {
"type": "array",
"description": "A list of questions to ask in order to obtain values for variables.",
"items": {
"type": "object",
"properties": {
"variable": {
"type": "string",
"description": "The variable name.",
"required": true
},
"question": {
"type": "string",
"description": "The question to ask the user.",
"required": true
},
"default": {
"type": "string",
"description": "The default value to put in the field. Only for text inputs."
},
"password": {
"type": "boolean",
"description": "Field is a password",
"default": false
},
"options": {
"type": "array",
"items": {
"type": "string"
}
},
"defaultValuePath": {
"type": "boolean",
"description": "The default value to put in the field. Only for text inputs.",
"default": false
},
"defaultValueFilename": {
"type": "boolean",
"description": "The default value to put in the field. Only for text inputs.",
"default": false
}
}
}
}
}
}
},
"variables": {
"type": "object",
"description": "Name => value mapping of variables available to all scripts."
}
}
}
}
}
}
}