feat: add sing-box configuration manager script and jq helpers

This commit is contained in:
Andrey Petelin
2025-08-31 13:09:55 +05:00
parent f3f5bca555
commit 7e041da8c6
2 changed files with 1221 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
def extend_key_value(current_value; new_value):
if (current_value | type) == "array" then
if (new_value | type) == "array" then
current_value + new_value
else
current_value + [new_value]
end
else
if (new_value | type) == "array" then
[current_value] + new_value
else
[current_value, new_value]
end
end;

File diff suppressed because it is too large Load Diff