Examples
The repository ships runnable broskifile examples under examples/, in increasing order of complexity. Clone
the repo and run any of them directly — they're real, working broskifiles, not snippets.
Start here
| Example | What it shows |
|---|---|
examples/minimal | The smallest possible graph-mode task: @in + @out, nothing else. |
examples/basic | A simple multi-step file pipeline (several tasks with dependencies). |
examples/python-cli | A normal test/build workflow with real cache reuse across runs. |
Broader stack coverage
| Example | What it shows |
|---|---|
examples/go-http | Building and testing a Go service. |
examples/node-web | Building and testing a Node service. |
examples/polyglot | A single pipeline spanning multiple languages/toolchains. |
examples/showcase | A heavier React + Rust + Docker demonstration — not the first onboarding stop, but useful once you've seen the basics. |
Running an example
Run every example's smoke task from the repository root in one shot:
broski --workspace . run examples_smoke --explain
Or point Broski directly at a single example's workspace:
cargo run -p broski-cli -- --workspace examples/python-cli run ci --explain
Once you have a release build installed, drop the cargo run -p broski-cli -- prefix:
broski --workspace examples/go-http run ci --explain
Suggested reading order
- Skim
examples/minimal/broskifilenext to Your First Broskifile — it's the same shape, distilled to the minimum. - Read
examples/basic/broskifilealongside Annotations to see@in/@out/deps used together in a real multi-task pipeline. - Read
examples/python-cli/broskifileto see cache reuse in practice — run it twice with--explainand watch the second run hit cache. - Once comfortable,
examples/polyglotandexamples/showcasedemonstrate larger, more realistic graphs.