File tree Expand file tree Collapse file tree 2 files changed +87
-0
lines changed Expand file tree Collapse file tree 2 files changed +87
-0
lines changed Original file line number Diff line number Diff line change 380
380
},
381
381
"additionalProperties" : false
382
382
},
383
+ "variable" : {
384
+ "title" : " variable" ,
385
+ "description" : " A global bash variable\n https://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
+ },
383
427
"name-property" : {
384
428
"title" : " name" ,
385
429
"description" : " A name of the current script or sub-command\n https://bashly.dannyb.co/configuration/command/#name" ,
490
534
"$ref" : " #/definitions/environment-variable"
491
535
}
492
536
},
537
+ "variables-property" : {
538
+ "title" : " variables" ,
539
+ "description" : " Bash variables for the current application\n https://bashly.dannyb.co/configuration/command/#variables" ,
540
+ "type" : " array" ,
541
+ "uniqueItems" : true ,
542
+ "items" : {
543
+ "$ref" : " #/definitions/variable"
544
+ }
545
+ },
493
546
"examples-property" : {
494
547
"title" : " examples" ,
495
548
"oneOf" : [
Original file line number Diff line number Diff line change @@ -335,6 +335,31 @@ definitions:
335
335
- ~/config.ini
336
336
patternProperties : *custom-properties
337
337
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
338
363
name-property :
339
364
title : name
340
365
description : |-
@@ -435,6 +460,15 @@ definitions:
435
460
uniqueItems : true
436
461
items :
437
462
$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'
438
472
examples-property :
439
473
title : examples
440
474
oneOf :
You can’t perform that action at this time.
0 commit comments