-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
110 lines (76 loc) · 2.96 KB
/
justfile
File metadata and controls
110 lines (76 loc) · 2.96 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
default:
just --list
# Repo hygiene
install-hooks:
git config --local core.hooksPath .githooks
chmod +x .githooks/pre-commit
build-inspect:
cargo build -p convex-inspect
build-cli:
cargo build -p convex-sync
build-cli-release:
cargo build -p convex-sync --release --locked
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all --check
check:
cargo check --workspace
test:
cargo test --workspace
clippy:
cargo clippy --workspace --all-targets --all-features -- -D warnings
verify: fmt-check clippy test
# CI
depot-ci *args:
depot ci run --workflow .depot/workflows/ci.yml {{args}}
# S3/export CLI
dev-cli *args:
./scripts/convex-sync-dev {{args}}
schemas *args:
cargo run -p convex-inspect -- schemas {{args}}
snapshot *args:
cargo run -p convex-inspect -- snapshot {{args}}
deltas *args:
cargo run -p convex-inspect -- deltas {{args}}
sync-once *args:
cargo run -p convex-sync -- sync-once {{args}}
materialize-staging *args:
cargo run -p convex-sync -- materialize-staging {{args}}
publish-s3 *args:
cargo run -p convex-sync -- publish-s3 {{args}}
run *args:
cargo run -p convex-sync -- run {{args}}
# Platform assets
aws-template-snapshot label="templates":
./scripts/snapshot-aws-templates.sh {{label}}
databricks-template-snapshot label="templates":
./scripts/snapshot-databricks-templates.sh {{label}}
# Databricks helpers
databricks-sync-staging-views *args:
./scripts/sync-databricks-staging-views.sh {{args}}
databricks-apply-sql-dir profile warehouse_id sql_dir:
./scripts/apply-databricks-sql-dir.sh {{profile}} {{warehouse_id}} {{sql_dir}}
databricks-delta-sync-secret *args:
./scripts/ensure-databricks-delta-secret.sh {{args}}
databricks-delta-bootstrap warehouse_id profile="DEFAULT":
./scripts/bootstrap-databricks-delta.sh {{profile}} {{warehouse_id}}
databricks-delta-render-dashboard output_file profile="":
./scripts/render-databricks-delta-dashboard.sh {{output_file}} {{profile}}
databricks-delta-publish-dashboard profile warehouse_id dashboard_id="":
./scripts/publish-databricks-delta-dashboard.sh {{profile}} {{warehouse_id}} {{dashboard_id}}
databricks-delta-render-pipeline profile output_file:
./scripts/render-databricks-delta-pipeline.sh {{profile}} {{output_file}}
databricks-delta-deploy-pipeline profile="DEFAULT" target="prod":
./scripts/deploy-databricks-delta-pipeline.sh {{profile}} {{target}}
databricks-delta-run-pipeline profile="DEFAULT" target="prod":
./scripts/run-databricks-delta-pipeline.sh {{profile}} {{target}}
databricks-delta-deploy profile="DEFAULT" target="dev":
./scripts/deploy-databricks-delta.sh {{profile}} {{target}}
databricks-delta-run profile="DEFAULT" target="dev" job_key="convex_delta_extract":
./scripts/run-databricks-delta-job.sh {{profile}} {{target}} {{job_key}}
databricks-delta-smoke warehouse_id profile="DEFAULT" target="dev":
./scripts/run-databricks-delta-smoke.sh {{profile}} {{target}} {{warehouse_id}}
# Install
install-dev:
./install.sh --mode dev --force