hara.lang.script-annex

+init-annex+

add-annex-runtime

added in 4.0

(add-annex-runtime ns tag rt)

adds a runtime to the annex

annex-current

added in 4.0

(annex-current)(annex-current ns)

gets the current annex. May not exist

(annex/annex-current) => any?

annex-reset

added in 4.0

(annex-reset)(annex-reset ns)

resets the current annex

clear-annex

added in 4.0

(clear-annex)(clear-annex ns)

clears all runtimes in the annex

deregister-annex-tag

added in 4.0

(deregister-annex-tag ns tag)

removes the config for the tag

get-annex

added in 4.0

(get-annex)(get-annex ns)

gets the current annex in the namespace

get-annex-book

added in 4.0

(get-annex-book ns lang)

gets the current book in the annex

(annex/get-annex-book (h/ns-sym) :lua) => book/book?

get-annex-library

added in 4.0

(get-annex-library ns)

gets the current annex library

(annex/get-annex-library (h/ns-sym)) => lib/library?

get-annex-runtime

added in 4.0

(get-annex-runtime ns tag)

gets the annex rutime

register-annex-tag

added in 4.0

(register-annex-tag ns tag lang runtime config)

registers a config for the tag

remove-annex-runtime

added in 4.0

(remove-annex-runtime ns tag)

removes the annex runtime

rt-annex:create

added in 4.0

(rt-annex:create {:keys [id], :as m})

creates an annex object

(annex/rt-annex:create {}) => annex/rt-annex?

rt-annex?

added in 4.0

(rt-annex? obj)

checks that object is an annex

same-runtime?

added in 4.0

(same-runtime? rt lang runtime config)

checks that one runtime is the same as another

start-runtime

added in 4.0

(start-runtime lang runtime config)

starts the runtime in the annex