genied.client
Client namespace - functions called by (babashka) clients
*script-dir*
dynamic
Dynamic var, set when loading a script-file. Used by load-relative-file below
ensure-dynamic-classloader
(ensure-dynamic-classloader)
Wrapper around classloader-ns version
exec-script
(exec-script script main-fn {:keys [opt], :as ctx} script-params)
Wrapper around load-script-libraries, load-file, and call-main.
load-relative-file
(load-relative-file path)
Load a file relative to the currently loading script
log-daemon-debug
(log-daemon-debug & forms)
Log a message to the original logger and err stream
log-daemon-info
(log-daemon-info & forms)
Log a message to the original logger and err stream
log-daemon-warn
(log-daemon-warn & forms)
Log a message to the original logger and err stream
print-diagnostic-info
(print-diagnostic-info ctx label)
Wrapper around diagnostics version. Use ctx to also log script-name on daemon-side
supported-protocol-version?
(supported-protocol-version? {:keys [protocol-version]})
Return true if protocol version is supported Not really used now, may be handy for future versions