@@ -53,7 +53,7 @@ definitions:
5353 Valid values of the current positional argument
5454 https://bashly.dannyb.co/configuration/argument/#allowed
5555 type : array
56- minLength : 1
56+ minItems : 1
5757 uniqueItems : true
5858 items :
5959 description : A valid value of the current positional argument
@@ -172,7 +172,7 @@ definitions:
172172 Valid values of the current flag
173173 https://bashly.dannyb.co/configuration/flag/#allowed
174174 type : array
175- minLength : 1
175+ minItems : 1
176176 uniqueItems : true
177177 items :
178178 description : A valid value of the current positional argument
@@ -186,7 +186,7 @@ definitions:
186186 Mutually exclusive flags of the current flag
187187 https://bashly.dannyb.co/configuration/flag/#conflicts
188188 type : array
189- minLength : 1
189+ minItems : 1
190190 uniqueItems : true
191191 items :
192192 description : The long form of the required flag
@@ -200,7 +200,7 @@ definitions:
200200 Additional flags required by the current flag
201201 https://bashly.dannyb.co/configuration/flag/#needs
202202 type : array
203- minLength : 1
203+ minItems : 1
204204 uniqueItems : true
205205 items :
206206 description : The long form of the required flag
@@ -214,7 +214,7 @@ definitions:
214214 Completions of the current flag
215215 https://bashly.dannyb.co/configuration/flag/#completions
216216 type : array
217- minLength : 1
217+ minItems : 1
218218 uniqueItems : true
219219 items :
220220 description : A completion of the current flag
@@ -317,7 +317,7 @@ definitions:
317317 Valid values of the current environment variable
318318 https://bashly.dannyb.co/configuration/environment-variable/#allowed
319319 type : array
320- minLength : 1
320+ minItems : 1
321321 uniqueItems : true
322322 items :
323323 description : A valid value of the current environment variable
@@ -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 : |-
@@ -382,8 +407,8 @@ definitions:
382407 Arguments of the current script or sub-command
383408 https://bashly.dannyb.co/configuration/command/#args
384409 type : array
385- uniqueItems : true
386410 minItems : 1
411+ uniqueItems : true
387412 items :
388413 $ref : ' #/definitions/argument'
389414 flags-property :
@@ -392,8 +417,8 @@ definitions:
392417 Flags of the current script or sub-command
393418 https://bashly.dannyb.co/configuration/command/#flags
394419 type : array
395- uniqueItems : true
396420 minItems : 1
421+ uniqueItems : true
397422 items :
398423 $ref : ' #/definitions/flag'
399424 commands-property :
@@ -402,6 +427,7 @@ definitions:
402427 Subcommands of the current script or sub-command
403428 https://bashly.dannyb.co/configuration/command/#commands
404429 type : array
430+ minItems : 1
405431 uniqueItems : true
406432 items :
407433 $ref : ' #/definitions/command-property'
@@ -432,9 +458,20 @@ definitions:
432458 Environment variables of the current application
433459 https://bashly.dannyb.co/configuration/environment-variable/#environment-variable
434460 type : array
461+ minItems : 1
435462 uniqueItems : true
436463 items :
437464 $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'
438475 examples-property :
439476 title : examples
440477 oneOf :
@@ -520,7 +557,7 @@ definitions:
520557 Completions of the current script or sub-command
521558 https://bashly.dannyb.co/configuration/command/#completions
522559 type : array
523- minLength : 1
560+ minItems : 1
524561 uniqueItems : true
525562 items :
526563 description : A completion of the current script or sub-command
@@ -583,7 +620,7 @@ definitions:
583620 Dependencies of the current script or sub-command
584621 https://bashly.dannyb.co/configuration/dependency/#dependency
585622 type: array
586- minLength : 1
623+ minItems : 1
587624 uniqueItems: true
588625 items:
589626 description: |-
@@ -708,6 +745,8 @@ definitions:
708745 $ref : ' #/definitions/sub-command-default-property'
709746 environment_variables :
710747 $ref : ' #/definitions/environment-variables-property'
748+ variables :
749+ $ref : ' #/definitions/variables-property'
711750 examples :
712751 $ref : ' #/definitions/examples-property'
713752 footer :
@@ -754,6 +793,8 @@ properties:
754793 $ref : ' #/definitions/root-version-property'
755794 environment_variables :
756795 $ref : ' #/definitions/environment-variables-property'
796+ variables :
797+ $ref : ' #/definitions/variables-property'
757798 examples :
758799 $ref : ' #/definitions/examples-property'
759800 footer :
0 commit comments