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: scripts/commands/extensions/query.sh
+41Lines changed: 41 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,47 @@ Command() {
36
36
"\x1b[31;1m Utilizes extension scripts, which can be a safety risk. Extensions with installation scripts can cause conflicts and break other extensions. Learn more at \033[0;2mblueprint.zip/docs/?page=documentation/scripts\x1b[0;31;1m.\033[0m"
37
37
fi
38
38
39
+
# Extension APIs
40
+
echo -e "\n\x1b[1mExtension APIs:\033[0m"
41
+
42
+
local extension_apis
43
+
forconfig_categoryin$conf__;do
44
+
# $config_category is conf_info, conf_admin, etc. here
45
+
config_category_="${config_category}_"# Contents of $config_category
46
+
47
+
if [[ ${config_category}!="conf_info" ]];then
48
+
forconfig_itemin${!config_category_};do
49
+
# $config_item is conf_info_name, conf_info_identifier, etc. here
50
+
config_item_clean="${config_item//conf_/}"# Removed "conf_" from variable content
51
+
config_item_="${config_item}_"# conf_requests_routers_ for example
52
+
53
+
if [[ ${!config_item_}!="" ]];then
54
+
local has_suboption=false
55
+
# If extension api has suboptions, go through them
0 commit comments