You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/query.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Query
2
2
3
-
Queries are modeled from `jq`'s filter mechanism. The featureset compared to `jq` is significantly less
3
+
Queries are modeled from `jq`'s querytree mechanism. The featureset compared to `jq` is significantly less
4
4
5
5
Both quering modes listed below are are mutually exclusive. By default, the 'simple' method is used by defualt; only if your query contains a `[` will the 'advanced' method be used
# If 'key' is not a member of object or index of array, error
98
98
if [ -z"${current_object["$key"]+x}" ];then
99
-
bash_object.util.die 'ERROR_NOT_FOUND'"Key or index '$key' (filter index '$i') does not exist"
99
+
bash_object.util.die 'ERROR_NOT_FOUND'"Key or index '$key' (querytree index '$i') does not exist"
100
100
return
101
101
# If 'key' is a member of an object or index of array
102
102
else
@@ -224,7 +224,7 @@ bash_object.traverse-get() {
224
224
fi
225
225
226
226
if((i+1<${#REPLIES[@]}));then
227
-
bash_object.util.die 'ERROR_NOT_FOUND'"The passed filter implies that '$key' accesses an object or array, but a string with a value of '$key_value' was found instead"
227
+
bash_object.util.die 'ERROR_NOT_FOUND'"The passed querytree implies that '$key' accesses an object or array, but a string with a value of '$key_value' was found instead"
if bash_object.ensure.variable_does_not_exist "$global_array_name";then:;else
@@ -337,7 +337,7 @@ bash_object.traverse-set() {
337
337
fi
338
338
339
339
if((i+1<${#REPLIES[@]}));then
340
-
bash_object.util.die 'ERROR_NOT_FOUND'"The passed filter implies that '$key' accesses an object or array, but a string with a value of '$key_value' was found instead"
340
+
bash_object.util.die 'ERROR_NOT_FOUND'"The passed querytree implies that '$key' accesses an object or array, but a string with a value of '$key_value' was found instead"
0 commit comments