-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
44 lines (32 loc) · 1.12 KB
/
Copy pathJustfile
File metadata and controls
44 lines (32 loc) · 1.12 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
# Run `just --list` to see recipes.
# Default recipe
_default:
@just --list
build:
cargo build
release:
cargo build --release
test:
cargo test
clippy:
cargo clippy --all-targets -- -D warnings
test-all: test clippy
cargo fmt
run-ui:
cargo run -p bicit-ui
# just run-sample templates/dev3.svg out
run-sample template="../bicit/templates/dev.svg" outbase="out": (run-gpx "test/t1.gpx" template outbase)
# Run with an arbitrary GPX file.
# Example:
# just run-gpx path/to/ride.gpx templates/dev.svg myride
[working-directory("bicit-cli")]
run-gpx datafile template="templates/dev.svg" outbase="out":
cargo run -p bicit-cli -- --datafile "{{ datafile }}" --template {{ template }} --outfile {{ outbase }}
# Render *all* templates in `templates/` for quick visual checks.
# Example:
# just render-all
# just render-all test/t1.gpx out
[working-directory("bicit-cli")]
render-all datafile="test/t1.gpx" outdir="out":
mkdir -p {{ outdir }}
for t in templates/*.svg; do name=$(basename "$t" .svg); cargo run -p bicit-cli -- --datafile "{{ datafile }}" --template "$t" --outfile "{{ outdir }}/$name"; done