-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
56 lines (43 loc) · 1.01 KB
/
Justfile
File metadata and controls
56 lines (43 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
[private]
default:
@just --list
# 安装到 sckc 到 ~/.cargo/bin
install:
cargo install --path cli
# 安装 sckt 到 ~/.cargo/bin
install-tui:
cargo install --path tui
# 安装全部客户端
install-all: install install-tui
# 卸载 sculk
uninstall:
cargo uninstall sculk-cli
# 卸载 sculk-tui
uninstall-tui:
cargo uninstall sculk-tui
# 卸载全部客户端
uninstall-all: uninstall uninstall-tui
# 检查
check:
cargo fmt --all -- --check
cargo check --workspace
cargo clippy --workspace --all-targets --all-features
# 测试
test:
cargo nextest run --workspace --no-tests=pass
# 格式化
fmt:
cargo fmt --all
# 生成文档
doc:
cargo doc --workspace --no-deps --open
# 编译 iroh-relay relay 服务端
[unix]
[group('relay')]
relay-build target='all':
bash scripts/deploy/build.sh {{ target }}
[windows]
[group('relay')]
relay-build target='all':
pwsh scripts/deploy/build.ps1 -Target {{ target }}