-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
35 lines (26 loc) · 824 Bytes
/
justfile
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
all_tests: no_token_test token_tests audit
no_token_test:
cargo clippy --all-targets -- -D warnings
cargo clippy --all-targets --all-features -- -D warnings
cargo test
# Require an access token from "cli.json". Use `just auth` to generate.
token_tests:
cargo run -- api products
cargo run --no-default-features --features cli -- api products
publish version:
git diff-index --quiet HEAD
# BSD sed
sed -i '' "s/^version = \".*\"$/version = \"{{version}}\"/" Cargo.toml
git add Cargo.toml
git commit -m "chore: v{{version}}"
git tag "v{{version}}"
git push origin "v{{version}}"
git push
cargo publish
auth:
cargo run -- auth --save
audit:
cargo audit
update:
cargo update && cargo upgrade
cd tesla_api_coverage && cargo update && cargo upgrade