forked from raine/claude-code-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
63 lines (49 loc) · 1.37 KB
/
Copy pathjustfile
File metadata and controls
63 lines (49 loc) · 1.37 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
# Rust project checks
set positional-arguments
set shell := ["bash", "-euo", "pipefail", "-c"]
# List available commands
default:
@just --list
# Run project checks through checkle
check:
checkle run all
# Run check and fail if there are uncommitted changes for CI
check-ci: check
#!/usr/bin/env bash
set -euo pipefail
if ! git diff --quiet || ! git diff --cached --quiet; then
echo "Error: check caused uncommitted changes"
echo "Run 'just check' locally and commit the results"
git diff --stat
exit 1
fi
# Install shims into the Git hooks directory
install-hooks:
scripts/install-git-hook-shims
# Check Rust formatting through checkle
format:
checkle run format-check
# Check clippy through checkle
clippy:
checkle run clippy
# Check the build through checkle
build:
checkle run build
# Run tests through checkle
test:
checkle run test
# Install release binary globally
install:
cargo install --offline --path . --locked
# Install debug binary globally via symlink
install-dev:
cargo build && ln -sf $(pwd)/target/debug/claude-code-proxy ~/.cargo/bin/claude-code-proxy
# Run the application
run *ARGS:
cargo run -- "$@"
# Internal release helper
_release bump *ARGS:
@cargo-release {{bump}} {{ARGS}}
# Release a new patch version
release *ARGS:
@just _release patch --skip-publish {{ARGS}}