Skip to content

Commit

Permalink
增加fetch新的说明
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Nov 28, 2023
1 parent b5ca608 commit adedd14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions learn/environment/zig-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,11 @@ outline: deep
$ zig fetch https://github.com/limine-bootloader/limine-zig/archive/trunk.tar.gz
12202809180bab2c7ae3382781b2fc65395e74b49d99ff2595f3fea9f7cf66cfa963
```

当然如果你想将包直接添加到 `zon` 中,你可以附加 `--save` 参数来实现效果:

```zig
zig fetch --save https://github.com/limine-bootloader/limine-zig/archive/trunk.tar.gz
// 当包提供 name 时,会自动使用包的 name
// 当然,你也可以指定包的 name,使用 --save=limine
```

0 comments on commit adedd14

Please sign in to comment.