mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 09:14:12 +02:00
55eac848df
qet_script_api lists every qet.* call, asked of the QElectroTech that will run it (qet.apiSignatures() where the build has it, names otherwise), with the header format that makes a script a button. qet_script_test runs a script's text on a copy of a project and returns the qet_diff of what it changed, its log and its errors with their line. qet_script_install stores a script, and optionally an SVG icon, in the scripts folder QElectroTech reads; with test_project it tests first and stores nothing if the test fails. qet_script_list, qet_script_read and qet_script_remove complete the set. The folder is the server's choice, never the call's: ids are checked as file names, and storing or removing needs QET_ENABLE_SCRIPTING=1 like an edit, because a stored script runs when the user clicks it. A header is checked with the same rules as QElectroTech's own, so nothing is stored that would get no button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>