Skip to content

Commit 40ddcb1

Browse files
committed
update settings schema
1 parent 3050b76 commit 40ddcb1

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

schemas/settings.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,22 @@
6666
"minLength": 1,
6767
"default": "lib"
6868
},
69+
"commands_dir": {
70+
"title": "commands dir",
71+
"description": "A directory to nested command files of the current script",
72+
"oneOf": [
73+
{
74+
"type": "null"
75+
},
76+
{
77+
"type": "string",
78+
"minLength": 1
79+
}
80+
]
81+
},
6982
"strict": {
7083
"title": "strict",
71-
"description": "Bash initialiation options of the current script",
84+
"description": "Bash initialization options of the current script",
7285
"oneOf": [
7386
{
7487
"type": "boolean"

support/runfile/schema.runfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ action :examples do
77
command = "check-jsonschema --schemafile schemas/bashly.json #{file}"
88
say "\n$ check-jsonschema bb`#{example.dir}`"
99
success = system command
10-
exit 1 unless success
10+
abort 'Failed' unless success
1111
end
1212
end
1313

@@ -17,7 +17,7 @@ action :settings do
1717
command = "check-jsonschema --schemafile schemas/settings.json #{file}"
1818
say "\n$ check-jsonschema bb`#{file}`"
1919
success = system command
20-
exit 1 unless success
20+
abort 'Failed' unless success
2121
end
2222

2323
help 'Test the strings schema against the default strings template'
@@ -26,5 +26,5 @@ action :strings do
2626
command = "check-jsonschema --schemafile schemas/strings.json #{file}"
2727
say "\n$ check-jsonschema bb`#{file}`"
2828
success = system command
29-
exit 1 unless success
29+
abort 'Failed' unless success
3030
end

0 commit comments

Comments
 (0)