@@ -53,7 +53,7 @@ definitions:
53
53
Valid values of the current positional argument
54
54
https://bashly.dannyb.co/configuration/argument/#allowed
55
55
type : array
56
- minLength : 1
56
+ minItems : 1
57
57
uniqueItems : true
58
58
items :
59
59
description : A valid value of the current positional argument
@@ -172,7 +172,7 @@ definitions:
172
172
Valid values of the current flag
173
173
https://bashly.dannyb.co/configuration/flag/#allowed
174
174
type : array
175
- minLength : 1
175
+ minItems : 1
176
176
uniqueItems : true
177
177
items :
178
178
description : A valid value of the current positional argument
@@ -186,7 +186,7 @@ definitions:
186
186
Mutually exclusive flags of the current flag
187
187
https://bashly.dannyb.co/configuration/flag/#conflicts
188
188
type : array
189
- minLength : 1
189
+ minItems : 1
190
190
uniqueItems : true
191
191
items :
192
192
description : The long form of the required flag
@@ -200,7 +200,7 @@ definitions:
200
200
Additional flags required by the current flag
201
201
https://bashly.dannyb.co/configuration/flag/#needs
202
202
type : array
203
- minLength : 1
203
+ minItems : 1
204
204
uniqueItems : true
205
205
items :
206
206
description : The long form of the required flag
@@ -214,7 +214,7 @@ definitions:
214
214
Completions of the current flag
215
215
https://bashly.dannyb.co/configuration/flag/#completions
216
216
type : array
217
- minLength : 1
217
+ minItems : 1
218
218
uniqueItems : true
219
219
items :
220
220
description : A completion of the current flag
@@ -317,7 +317,7 @@ definitions:
317
317
Valid values of the current environment variable
318
318
https://bashly.dannyb.co/configuration/environment-variable/#allowed
319
319
type : array
320
- minLength : 1
320
+ minItems : 1
321
321
uniqueItems : true
322
322
items :
323
323
description : A valid value of the current environment variable
@@ -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 : |-
@@ -382,8 +407,8 @@ definitions:
382
407
Arguments of the current script or sub-command
383
408
https://bashly.dannyb.co/configuration/command/#args
384
409
type : array
385
- uniqueItems : true
386
410
minItems : 1
411
+ uniqueItems : true
387
412
items :
388
413
$ref : ' #/definitions/argument'
389
414
flags-property :
@@ -392,8 +417,8 @@ definitions:
392
417
Flags of the current script or sub-command
393
418
https://bashly.dannyb.co/configuration/command/#flags
394
419
type : array
395
- uniqueItems : true
396
420
minItems : 1
421
+ uniqueItems : true
397
422
items :
398
423
$ref : ' #/definitions/flag'
399
424
commands-property :
@@ -402,6 +427,7 @@ definitions:
402
427
Subcommands of the current script or sub-command
403
428
https://bashly.dannyb.co/configuration/command/#commands
404
429
type : array
430
+ minItems : 1
405
431
uniqueItems : true
406
432
items :
407
433
$ref : ' #/definitions/command-property'
@@ -432,9 +458,20 @@ definitions:
432
458
Environment variables of the current application
433
459
https://bashly.dannyb.co/configuration/environment-variable/#environment-variable
434
460
type : array
461
+ minItems : 1
435
462
uniqueItems : true
436
463
items :
437
464
$ref : ' #/definitions/environment-variable'
465
+ variables-property :
466
+ title : variables
467
+ description : |-
468
+ Bash variables for the current application
469
+ https://bashly.dannyb.co/configuration/command/#variables
470
+ type : array
471
+ minItems : 1
472
+ uniqueItems : true
473
+ items :
474
+ $ref : ' #/definitions/variable'
438
475
examples-property :
439
476
title : examples
440
477
oneOf :
@@ -520,7 +557,7 @@ definitions:
520
557
Completions of the current script or sub-command
521
558
https://bashly.dannyb.co/configuration/command/#completions
522
559
type : array
523
- minLength : 1
560
+ minItems : 1
524
561
uniqueItems : true
525
562
items :
526
563
description : A completion of the current script or sub-command
@@ -583,7 +620,7 @@ definitions:
583
620
Dependencies of the current script or sub-command
584
621
https://bashly.dannyb.co/configuration/dependency/#dependency
585
622
type: array
586
- minLength : 1
623
+ minItems : 1
587
624
uniqueItems: true
588
625
items:
589
626
description: |-
@@ -708,6 +745,8 @@ definitions:
708
745
$ref : ' #/definitions/sub-command-default-property'
709
746
environment_variables :
710
747
$ref : ' #/definitions/environment-variables-property'
748
+ variables :
749
+ $ref : ' #/definitions/variables-property'
711
750
examples :
712
751
$ref : ' #/definitions/examples-property'
713
752
footer :
@@ -754,6 +793,8 @@ properties:
754
793
$ref : ' #/definitions/root-version-property'
755
794
environment_variables :
756
795
$ref : ' #/definitions/environment-variables-property'
796
+ variables :
797
+ $ref : ' #/definitions/variables-property'
757
798
examples :
758
799
$ref : ' #/definitions/examples-property'
759
800
footer :
0 commit comments