Skip to content

Examples

sarr-io edited this page Jun 19, 2026 · 9 revisions

Examples

YAML shape

circuitry: "0.8.2"
name: bash status

in:
  - $command

status:
  surface: unix-bash.bash
  in:
    command: $command
  out:
    output: $output
    exit: $exit

out:
  - $output
  - $exit
zn run examples/bash-status.circuitry.yaml command="pwd"

Markdown shape

---
circuitry: "0.8.2"
name: bash status

in:
  - $command

status:
  surface: unix-bash.bash
  in:
    command: $command
  out:
    output: $output
    exit: $exit

out:
  - $output
  - $exit
---

# Bash status

Human notes live here.
zn run examples/bash-status.circuitry.md command="pwd"

Zinc runs the front matter. Circuitry never sees the Markdown body.

Ready wave

circuitry: "0.8.2"
name: parallel smoke

in:
  - $a
  - $b

left:
  surface: unix-bash.bash
  in:
    command: $a
  out:
    output: $left

right:
  surface: unix-bash.bash
  in:
    command: $b
  out:
    output: $right

final:
  surface: unix-bash.bash
  in:
    left: $left
  out:
    output: $done

out:
  - $left
  - $right
  - $done

With runtime.parallel: 4, left and right may run together. final waits.

Clone this wiki locally