-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
84 lines (62 loc) · 2.46 KB
/
Copy pathjustfile
File metadata and controls
84 lines (62 loc) · 2.46 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# zdx justfile — run `just` to see all recipes
# Default: list available recipes
default:
@just --list
# ─── Run ──────────────────────────────────────────
# Run the TUI (pass extra args: just run --help)
run *ARGS:
cargo run -p zdx -- {{ARGS}}
# Run the service dashboard
monitor:
cargo run -p zdx -- monitor
# Run the Telegram bot
bot:
cargo run -p zdx -- bot
# Run automations commands (pass extra args: just automations list)
automations *ARGS:
cargo run -p zdx -- automations {{ARGS}}
# ─── Quality ──────────────────────────────────────
# Full local CI (lint + test) — use before pushing
ci: lint test
# Fast inner-loop check — single cargo mode (clippy), default features, lib+bins only
ci-fast: fmt
cargo clippy --workspace -- -D warnings
# Format + clippy
lint: fmt clippy
# Format (nightly rustfmt)
fmt:
cargo +nightly fmt
# Lint
clippy:
cargo clippy --workspace --all-targets --all-features -- -D warnings
# Run tests with nextest (fast path, no doctests)
test:
cargo nextest run --workspace
# ─── Xtask ────────────────────────────────────────
# Update default models
update-models:
cargo xtask update-default-models
# Update default config
update-config:
cargo xtask update-default-config
# Update both defaults
update-defaults:
cargo xtask update-defaults
# Generate codebase snapshot (optional: just codebase crates/zdx-tui)
codebase *CRATES:
cargo xtask codebase {{CRATES}}
# ─── Build ────────────────────────────────────────
# Build release binary
build-release:
cargo build -p zdx --release
# Install current workspace as the released `zdx` binary at ~/.local/bin/zdx
install: build-release
@mkdir -p ~/.local/bin
install -m 0755 ../.zdx/cargo-target/release/zdx ~/.local/bin/zdx
@echo "Installed $(~/.local/bin/zdx --version 2>/dev/null || echo zdx) to ~/.local/bin/zdx"
# (Re)create ~/.local/bin/zdxd as a symlink to the debug build
install-debug:
cargo build -p zdx
@mkdir -p ~/.local/bin
ln -sfn "$(cd ../.zdx/cargo-target/debug && pwd)/zdx" ~/.local/bin/zdxd
@echo "Linked ~/.local/bin/zdxd -> $(cd ../.zdx/cargo-target/debug && pwd)/zdx"