Files
orbit/examples/project/README.md
T
nandi 3ca9e8ed1d Add example project with locked dependencies and tasks
- Add examples/project with orbit.toml declaring hello and greet (example channel)
- Pin resolved versions and digests in orbit.lock
- Add demo.sh and a demo task that calls hello and greet from .orbit/bin
- Ignore the generated .orbit/ directory and document usage in its README
- Link the example from the main README
2026-11-28 12:13:00 -08:00

27 lines
1.1 KiB
Markdown

# orbit-demo
An example project whose dependencies (`hello` from `main` and `greet` from `example`) are declared in [orbit.toml](orbit.toml) and pinned in [orbit.lock](orbit.lock).
## Files
- `orbit.toml` — declares the `example` channel, dependencies (`greet` and `hello`), and `[tasks]`.
- `orbit.lock` — deterministic lockfile generated by `orbit lock`.
- `demo.sh` — script invoked by the `demo` task that calls `hello` and `greet` from `.orbit/bin/`.
- `.gitignore` — ignores the generated `.orbit/` environment directory.
## Usage
From this directory:
```sh
orbit install --locked # sync .orbit/ from orbit.lock
orbit list # show locked project packages
orbit run --locked demo # run demo.sh with .orbit/bin on PATH
orbit run --locked greet # run the greet task
orbit run --locked hello # run the hello task
orbit update # resolve newer versions allowed by orbit.toml
eval "$(orbit env)" # put .orbit/bin on PATH in your current shell
```
Or from the repository root with `--manifest-path examples/project`.