ilusm.dev

sup

Support utilities, logging, config, helpers.

Load with: use sup

Quick example

use sup

result = suplg("value", "hello")
prn(result)

Functions

Logging

suplg(lv, msg)

Performs the operation. Takes lv, msg.

supdb(msg)

Performs the operation. Takes msg.

supin(msg)

Initialises. Takes msg.

supwr(msg)

Writes data. Takes msg.

super(msg)

Performs the operation. Takes msg.

supft(msg)

Performs the operation. Takes msg.

Config

spcfn(op)

Finalises. Takes op.

spcfl(cf)

Performs the operation. Takes cf.

spcf0(cf)

Performs the operation. Takes cf.

spcfg(cf, ky)

Performs the operation. Takes cf, ky.

spcfs(cf, ky, vl)

Performs the operation. Takes cf, ky, vl.

Assertions

supas(co, msg)

Performs the operation. Takes co, msg.

supeq(a, b, msg)

Performs the operation. Takes a, b, msg.

supne(a, b, msg)

Creates a new instance. Takes a, b, msg.

suptp(v, tp, msg)

Performs the operation. Takes v, tp, msg.

supni(v, msg)

Performs the operation. Takes v, msg.

supmt(s, p, msg)

Performs the operation. Takes s, p, msg.

Helpers

supid()

Performs the operation.

suprn()

Performs the operation.

supup()

Updates.

supfl(v, d)

Performs the operation. Takes v, d.

Retry

supry(fn, at, dl)

Performs the operation. Takes fn, at, dl.

Cache

spcne(op)

Creates a new instance. Takes op.

spcgt(ca, ky)

Performs the operation. Takes ca, ky.

supst(ca, ky, vl)

Sets a value or starts a process. Takes ca, ky, vl.

spccr(ca)

Creates a new instance. Takes ca.

CLI

suspc(nm, ds, vs)

Performs the operation. Takes nm, ds, vs.

spcld(cl, nm, op, fn)

Performs the operation. Takes cl, nm, op, fn.

spclg(cl, nm, tp, rq)

Performs the operation. Takes cl, nm, tp, rq.

spclp(cl, ar)

Performs the operation. Takes cl, ar.

Environment

supnv(ky)

Performs the operation. Takes ky.

supnv(ky, df)

Performs the operation. Takes ky, df.

spnvs(ky, vl)

Performs the operation. Takes ky, vl.

spnpr()

Processes or prints.

File ops

spfns(p, dt)

Performs the operation. Takes p, dt.

spfnm(s, d)

Performs the operation. Takes s, d.

spfnr(p)

Performs the operation. Takes p.

spfnx(p)

Performs the operation. Takes p.

spfn0(p)

Performs the operation. Takes p.

Template

suptp(s, ctx)

Performs the operation. Takes s, ctx.

Notes

  • Supervision trees - restart strategies, process monitoring.