Kiro
A scripting language for automation. Pipe command output through functions or serve an HTTP endpoint from a .kr file.
fn ordered(xs):
return xs -> unique() -> sort()
print(ordered([3, 1, 3, 2])) name = "Kiro"
result = $ "printf '%s' hello-{name}"
print(result.out, result.code) url = "http://127.0.0.1:8080/health"
res = http.get(url)
if res.ok:
body = res.json()
print(res.status, body.ready) Reference
Full specification ↗-
Syntax
Use
:and indentation for blocks, and{name}for interpolation in double-quoted strings. -
$CommandsRun an executable directly. Assign its result to capture
out,err,code, andok. -
->Pipelinesvalue -> f(arg)passesvalueas the first argument tof. -
Preludes