File tree Expand file tree Collapse file tree 6 files changed +125
-11
lines changed Expand file tree Collapse file tree 6 files changed +125
-11
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ command.private:
310
310
private: true
311
311
312
312
command.variables :
313
- help : Define a list of global bash variables.
313
+ help : Define a list of global bash variables. See `variable` for reference.
314
314
url : https://bashly.dannyb.co/configuration/command/#variables
315
315
example : |-
316
316
variables:
@@ -330,7 +330,6 @@ command.variables:
330
330
pattern: "*.json"
331
331
compression_level: fast
332
332
333
-
334
333
command.version :
335
334
help : Specify the version to show when running with `--version`.
336
335
url : https://bashly.dannyb.co/configuration/command/#version
Original file line number Diff line number Diff line change
1
+ variable :
2
+ help : Define variables that will be available to your script.
3
+ url : https://bashly.dannyb.co/configuration/variable/
4
+ example : |-
5
+ variables:
6
+ # Simple value
7
+ - name: output_folder
8
+ value: output
9
+
10
+ # Array
11
+ - name: download_sources
12
+ value:
13
+ - youtube
14
+ - instagram
15
+
16
+ # Associative array
17
+ - name: zip_options
18
+ value:
19
+ pattern: "*.json"
20
+ compression_level: fast
21
+
22
+ variable.name :
23
+ help : Specify the name of the variable.
24
+ url : https://bashly.dannyb.co/configuration/variable/#name
25
+ example : |-
26
+ variables:
27
+ - name: output_folder
28
+ value: output
29
+
30
+ variable.value :
31
+ help : |-
32
+ Specify the value for this variable.
33
+ This can be any value type, including array and hash (associative array).
34
+ url : https://bashly.dannyb.co/configuration/variable/#value
35
+ example : |-
36
+ variables:
37
+ # Simple value
38
+ - name: output_folder
39
+ value: output
40
+
41
+ # Array
42
+ - name: download_sources
43
+ value:
44
+ - youtube
45
+ - instagram
46
+
47
+ # Associative array
48
+ - name: zip_options
49
+ value:
50
+ pattern: "*.json"
51
+ compression_level: fast
Original file line number Diff line number Diff line change 382
382
},
383
383
"variable" : {
384
384
"title" : " variable" ,
385
- "description" : " A global bash variable\n https://bashly.dannyb.co/configuration/command/#variables " ,
385
+ "description" : " A global bash variable\n https://bashly.dannyb.co/configuration/variable/#variable " ,
386
386
"type" : " object" ,
387
387
"required" : [
388
388
" name"
389
389
],
390
390
"properties" : {
391
391
"name" : {
392
392
"title" : " name" ,
393
- "description" : " A name for the current variable" ,
393
+ "description" : " A name for the current variable\n https://bashly.dannyb.co/configuration/variable/#name " ,
394
394
"type" : " string" ,
395
395
"minLength" : 1 ,
396
396
"examples" : [
399
399
},
400
400
"value" : {
401
401
"title" : " value" ,
402
- "description" : " A value for the current variable" ,
402
+ "description" : " A value for the current variable\n https://bashly.dannyb.co/configuration/variable/#value " ,
403
403
"examples" : [
404
- " output_dir " ,
404
+ " ./output " ,
405
405
[
406
406
" development" ,
407
407
" production"
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ command.private
469
469
470
470
command.variables
471
471
472
- Define a list of global bash variables.
472
+ Define a list of global bash variables. See variable for reference.
473
473
474
474
variables:
475
475
# Simple value
@@ -824,3 +824,60 @@ flag.validate
824
824
825
825
See https://bashly.dannyb.co/configuration/flag/#validate
826
826
827
+ variable
828
+
829
+ Define variables that will be available to your script.
830
+
831
+ variables:
832
+ # Simple value
833
+ - name: output_folder
834
+ value: output
835
+
836
+ # Array
837
+ - name: download_sources
838
+ value:
839
+ - youtube
840
+ - instagram
841
+
842
+ # Associative array
843
+ - name: zip_options
844
+ value:
845
+ pattern: "*.json"
846
+ compression_level: fast
847
+
848
+ See https://bashly.dannyb.co/configuration/variable/
849
+
850
+ variable.name
851
+
852
+ Specify the name of the variable.
853
+
854
+ variables:
855
+ - name: output_folder
856
+ value: output
857
+
858
+ See https://bashly.dannyb.co/configuration/variable/#name
859
+
860
+ variable.value
861
+
862
+ Specify the value for this variable.
863
+ This can be any value type, including array and hash (associative array).
864
+
865
+ variables:
866
+ # Simple value
867
+ - name: output_folder
868
+ value: output
869
+
870
+ # Array
871
+ - name: download_sources
872
+ value:
873
+ - youtube
874
+ - instagram
875
+
876
+ # Associative array
877
+ - name: zip_options
878
+ value:
879
+ pattern: "*.json"
880
+ compression_level: fast
881
+
882
+ See https://bashly.dannyb.co/configuration/variable/#value
883
+
Original file line number Diff line number Diff line change @@ -51,3 +51,6 @@ flag.required
51
51
flag.short
52
52
flag.unique
53
53
flag.validate
54
+ variable
55
+ variable.name
56
+ variable.value
Original file line number Diff line number Diff line change @@ -339,23 +339,27 @@ definitions:
339
339
title : variable
340
340
description : |-
341
341
A global bash variable
342
- https://bashly.dannyb.co/configuration/command/#variables
342
+ https://bashly.dannyb.co/configuration/variable/#variable
343
343
type : object
344
344
required :
345
345
- name
346
346
properties :
347
347
name :
348
348
title : name
349
- description : A name for the current variable
349
+ description : |-
350
+ A name for the current variable
351
+ https://bashly.dannyb.co/configuration/variable/#name
350
352
type : string
351
353
minLength : 1
352
354
examples :
353
355
- output_dir
354
356
value :
355
357
title : value
356
- description : A value for the current variable
358
+ description : |-
359
+ A value for the current variable
360
+ https://bashly.dannyb.co/configuration/variable/#value
357
361
examples :
358
- - output_dir
362
+ - ./output
359
363
- [development, production]
360
364
- { verbosity: 3, debug: true }
361
365
patternProperties : *custom-properties
You can’t perform that action at this time.
0 commit comments