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
This commit is contained in:
nandi committed 2026-11-28 12:13:00 -08:00
1 parent 13aa7d7f77
commit 3ca9e8ed1d
6 files changed
+83

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
[project]
name = "orbit-demo"
version = "0.1.0"
description = "Example project with dependencies managed by orbit"
channels = ["main", "example"]
[[channels]]
name = "example"
url = "git.site.latha.org/nandi/example"
[dependencies]
greet = { version = ">=1.0.0, <2.0.0", channel = "example" }
hello = "^1.0.0"
[tasks]
demo = "sh \"$ORBIT_PROJECT/demo.sh\""
greet = "greet"
hello = ["hello"]