Skip to content

Commit 154a70f

Browse files
committed
update schema with commanbd.variables
1 parent e72cfa2 commit 154a70f

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed

schemas/bashly.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,50 @@
380380
},
381381
"additionalProperties": false
382382
},
383+
"variable": {
384+
"title": "variable",
385+
"description": "A global bash variable\nhttps://bashly.dannyb.co/configuration/command/#variables",
386+
"type": "object",
387+
"required": [
388+
"name"
389+
],
390+
"properties": {
391+
"name": {
392+
"title": "name",
393+
"description": "A name for the current variable",
394+
"type": "string",
395+
"minLength": 1,
396+
"examples": [
397+
"output_dir"
398+
]
399+
},
400+
"value": {
401+
"title": "value",
402+
"description": "A value for the current variable",
403+
"examples": [
404+
"output_dir",
405+
[
406+
"development",
407+
"production"
408+
],
409+
{
410+
"verbosity": 3,
411+
"debug": true
412+
}
413+
]
414+
}
415+
},
416+
"patternProperties": {
417+
"^x_.": {
418+
"title": "custom property",
419+
"description": "A custom property of any type",
420+
"examples": [
421+
"Anything"
422+
]
423+
}
424+
},
425+
"additionalProperties": false
426+
},
383427
"name-property": {
384428
"title": "name",
385429
"description": "A name of the current script or sub-command\nhttps://bashly.dannyb.co/configuration/command/#name",
@@ -490,6 +534,15 @@
490534
"$ref": "#/definitions/environment-variable"
491535
}
492536
},
537+
"variables-property": {
538+
"title": "variables",
539+
"description": "Bash variables for the current application\nhttps://bashly.dannyb.co/configuration/command/#variables",
540+
"type": "array",
541+
"uniqueItems": true,
542+
"items": {
543+
"$ref": "#/definitions/variable"
544+
}
545+
},
493546
"examples-property": {
494547
"title": "examples",
495548
"oneOf": [

support/schema/bashly.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,31 @@ definitions:
335335
- ~/config.ini
336336
patternProperties: *custom-properties
337337
additionalProperties: false
338+
variable:
339+
title: variable
340+
description: |-
341+
A global bash variable
342+
https://bashly.dannyb.co/configuration/command/#variables
343+
type: object
344+
required:
345+
- name
346+
properties:
347+
name:
348+
title: name
349+
description: A name for the current variable
350+
type: string
351+
minLength: 1
352+
examples:
353+
- output_dir
354+
value:
355+
title: value
356+
description: A value for the current variable
357+
examples:
358+
- output_dir
359+
- [development, production]
360+
- { verbosity: 3, debug: true }
361+
patternProperties: *custom-properties
362+
additionalProperties: false
338363
name-property:
339364
title: name
340365
description: |-
@@ -435,6 +460,15 @@ definitions:
435460
uniqueItems: true
436461
items:
437462
$ref: '#/definitions/environment-variable'
463+
variables-property:
464+
title: variables
465+
description: |-
466+
Bash variables for the current application
467+
https://bashly.dannyb.co/configuration/command/#variables
468+
type: array
469+
uniqueItems: true
470+
items:
471+
$ref: '#/definitions/variable'
438472
examples-property:
439473
title: examples
440474
oneOf:

0 commit comments

Comments
 (0)