File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed
docs/advanced/4_local_development Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,74 @@ set "WM_WORKSPACE=workspace_id"
189
189
190
190
then simply run the relevant command for your language.
191
191
192
+ ### Metadata file
193
+
194
+ Metadata files are used with the [ CLI sync] ( ../11_git_sync/cli_sync.mdx ) to push to a windmill workspace with additional data such as
195
+ summary, description, additional UI configs and the full lockfile. The metadata file ias at <script_path without extension >.script.yaml.
196
+
197
+ ```
198
+ f/foo/my_script.ts
199
+ f/foo/my_script.script.yaml
200
+ ```
201
+
202
+ The metadata file has the following format:
203
+
204
+ ```
205
+ summary: 'My summary'
206
+ description: 'My description'
207
+ lock:
208
+ - anyio==4.2.0
209
+ - certifi==2023.11.17
210
+ - h11==0.14.0
211
+ - httpcore==0.17.3
212
+ - httpx==0.24.1
213
+ - idna==3.6
214
+ - sniffio==1.3.0
215
+ - wmill==1.237.0
216
+ schema:
217
+ $schema: 'https://json-schema.org/draft/2020-12/schema'
218
+ type: object
219
+ properties:
220
+ name:
221
+ type: string
222
+ description: ''
223
+ default: Nicolas Bourbaki
224
+ age:
225
+ type: integer
226
+ description: ''
227
+ default: 42
228
+ file_:
229
+ type: string
230
+ description: ''
231
+ contentEncoding: base64
232
+ default: <function call>
233
+ l:
234
+ type: array
235
+ description: ''
236
+ default:
237
+ - or
238
+ - lists!
239
+ items:
240
+ type: string
241
+ enum: null
242
+ no_default:
243
+ type: string
244
+ description: ''
245
+ default: null
246
+ obj:
247
+ type: object
248
+ description: ''
249
+ default:
250
+ even: dicts
251
+ properties: {}
252
+ required:
253
+ - no_default
254
+ is_template: false
255
+ kind: script
256
+ ```
257
+
258
+ Schema is following the [ jsonschema] ( ../../../core_concepts/13_json_schema_and_parsing/index.md ) format
259
+
192
260
### VS Code
193
261
194
262
:::info VS Code Extension
You can’t perform that action at this time.
0 commit comments