Skip to content

Commit 091c4ba

Browse files
author
William Yang
committed
docs: 更新本地自测文档,添加多种安装方式
1 parent eb47bce commit 091c4ba

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,36 @@ CS50 是哈佛大学的计算机科学入门课程,由 David J. Malan 教授
2323

2424
## 本地自测
2525

26+
### 方式一:安装 bootcs 命令(推荐)
27+
28+
**macOS / Linux:**
29+
30+
```bash
31+
curl -fsSL https://bootcs.cn/install.sh | bash
32+
```
33+
34+
安装后直接使用:
35+
36+
```bash
37+
bootcs check cs50/credit
38+
```
39+
40+
### 方式二:直接使用 Docker
41+
2642
```bash
2743
docker run --rm -v $(pwd):/workspace ghcr.io/bootcs-cn/bootcs-cli:cs50 check cs50/<stage>
2844
```
45+
46+
### 方式三:设置别名
47+
48+
将以下内容添加到 `~/.zshrc``~/.bashrc`
49+
50+
```bash
51+
alias bootcs='docker run --rm -v $(pwd):/workspace ghcr.io/bootcs-cn/bootcs-cli:cs50'
52+
```
53+
54+
然后使用:
55+
56+
```bash
57+
bootcs check cs50/credit
58+
```

0 commit comments

Comments
 (0)