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.

get-classloader

(get-classloader)

Wrapper around classloader-ns version

init

(init)

Init client part, dummy for now

list-sessions

(list-sessions)

Show session info

load-library

(load-library lib version)

Wrapper around classloader-ns version

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

println-daemon-err

(println-daemon-err msg)

Print a line to the daemon err

println-daemon-out

(println-daemon-out msg)

Print a line to the daemon out

set-dynamic-classloader!

(set-dynamic-classloader!)

Wrapper around classloader-ns version

stop-daemon!

(stop-daemon!)

Stop this daemon

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

supported-protocol-versions

Seq of supported protocol versions