diff libervia/backend/bridge/bridge_constructor/bridge_template.ini @ 4193:730f542e4ad0

core: add new `init_script_path` option: `init_script_path` option can be used in `[DEFAULTS]` to run a script at the end of backend initialisation. A new `init_pre_script` method is used to wait for backend to reach this stage (designed to be used mostly by CLI frontend), then the usual `ready_get` method is finished once the script is finished.
author Goffi <goffi@goffi.org>
date Wed, 13 Dec 2023 22:00:22 +0100
parents a8a0fa678ce2
children
line wrap: on
line diff
--- a/libervia/backend/bridge/bridge_constructor/bridge_template.ini	Tue Dec 12 12:17:15 2023 +0100
+++ b/libervia/backend/bridge/bridge_constructor/bridge_template.ini	Wed Dec 13 22:00:22 2023 +0100
@@ -237,6 +237,14 @@
 sig_out=
 doc=Return when backend is initialised
 
+[init_pre_script]
+async=
+type=method
+category=core
+sig_in=
+sig_out=
+doc=Return when backend is nearly initialised, just before init script is run, if any.
+
 [version_get]
 type=method
 category=core