Verified Commit f58693fe authored by Karel Koci's avatar Karel Koci 🤘

language: Mark old Script syntax as deprecated

parent b90cd2e1
......@@ -228,12 +228,11 @@ Script
script = Script("uri", { extra })
This command runs another script. The name is the local part of the
script name.
This command runs another script.
The uri provides the location of the script.
The last parameter is a table with extra information. It allows
The second parameter is a table with extra information. It allows
fine-tuning the verification of URI and the way the script runs. The
current extra parameters are following.
......@@ -258,12 +257,10 @@ ca::
crl::
Options to verify the script integrity.
Note that for backward compatibility we also support following format:
Note that following format is now marked as obsolete and should not be used:
script = Script("script-name", "uri", { extra })
Although we are no longer validating script name and is no longer used anywhere.
Repository
~~~~~~~~~~
......
......@@ -425,6 +425,8 @@ function script(context, filler, script_uri, extra)
if (not extra and not script_uri) or type(script_uri) == "table" then
extra = script_uri
script_uri = filler
else
WARN("Syntax \"Script('script-name', 'uri', { extra })\" is deprecated and will be removed.")
end
DBG("Running script " .. script_uri)
extra = allowed_extras_check_type(allowed_script_extras, 'script', extra or {})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment