Skip to content

Commit c8cd114

Browse files
committed
πŸ“ Updated readme: Added zig fetch command
1 parent 5f84aaa commit c8cd114

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,27 @@ Chroma is a Zig library for advanced ANSI color and text styling in terminal out
2727

2828
## πŸš€ Getting Started
2929

30+
### Prerequisite
31+
32+
1. Fetch the project using `zig fetch`
33+
34+
```bash
35+
zig fetch --save https://github.com/adia-dev/chroma-zig/archive/refs/heads/main.zip
36+
```
37+
38+
Or manually paste this in your `build.zig.zon`
39+
40+
```zig
41+
.dependencies = .{
42+
// other deps...
43+
.chroma = .{
44+
.url = "https://github.com/adia-dev/chroma-zig/archive/refs/heads/main.zip",
45+
.hash = "12209a8a991121bba3b21f31d275588690dc7c0d7fa9c361fd892e782dd88e0fb2ba",
46+
},
47+
// ...
48+
},
49+
```
50+
3051
1. **Add Chroma to Your Zig Project:**
3152
Include Chroma as a dependency in your `build.zig` or your `build.zig.zon`. For example:
3253

0 commit comments

Comments
Β (0)