Skip to content

Commit ee3bebf

Browse files
committed
update settings schema
1 parent 27d4305 commit ee3bebf

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

examples/multiple-lib-dirs/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -x
44

5-
# bashly generate
5+
bashly generate
66

77
### Try Me ###
88

schemas/settings.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,37 @@
6666
"minLength": 1,
6767
"default": "lib"
6868
},
69+
"extra_lib_dirs": {
70+
"title": "extra lib dirs",
71+
"description": "One or more paths to use for common library files, relative to the working directory.\nMay be provided as an array or a comma delimited string.\nhttps://bashly.dev/usage/settings/#extra_lib_dirs",
72+
"oneOf": [
73+
{
74+
"type": "null"
75+
},
76+
{
77+
"type": "string",
78+
"minLength": 1,
79+
"examples": [
80+
"common, org_lib",
81+
"lib"
82+
]
83+
},
84+
{
85+
"type": "array",
86+
"items": {
87+
"type": "string",
88+
"minLength": 1
89+
},
90+
"examples": [
91+
[
92+
"common",
93+
"org_lib"
94+
]
95+
]
96+
}
97+
],
98+
"default": null
99+
},
69100
"commands_dir": {
70101
"title": "commands dir",
71102
"description": "The path to use for command files, relative to source_dir\nhttps://bashly.dev/usage/settings/#commands_dir",

support/schema/settings.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,27 @@ properties:
6363
type: string
6464
minLength: 1
6565
default: lib
66+
extra_lib_dirs:
67+
title: extra lib dirs
68+
description: |-
69+
One or more paths to use for common library files, relative to the working directory.
70+
May be provided as an array or a comma delimited string.
71+
https://bashly.dev/usage/settings/#extra_lib_dirs
72+
oneOf:
73+
- type: "null"
74+
- type: string
75+
minLength: 1
76+
examples:
77+
- "common, org_lib"
78+
- "lib"
79+
- type: array
80+
items:
81+
type: string
82+
minLength: 1
83+
examples:
84+
- [common, org_lib]
85+
default: null
86+
6687
commands_dir:
6788
title: commands dir
6889
description: |-

0 commit comments

Comments
 (0)