-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjustfile
50 lines (39 loc) · 1.21 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
set shell := ["nu", "-c"]
kvsd_user := "synduser"
# List recipe
default:
just --list
# Format files
fmt: fmt-toml
# Format toml files
fmt-toml:
taplo fmt **.toml
update-gql-schema:
graphql-client introspect-schema http://localhost:5959/graphql \
--header 'authorization: me' out> syndterm/gql/schema.json
gen-gql:
graphql-client generate \
--schema-path syndterm/gql/schema.json \
--output-directory syndterm/src/client \
--response-derives "Debug" \
syndterm/gql/query.gql
graphql-client generate \
--schema-path syndterm/gql/schema.json \
--output-directory syndterm/src/client \
--response-derives "Debug" \
syndterm/gql/mutation.gql
graphql-client generate \
--schema-path syndapi/src/client/github/schema.json \
--output-directory syndapi/src/client/github \
--response-derives "Debug" \
syndapi/src/client/github/query.gql
# Run kvsd
run-kvsd:
~/.cargo/bin/kvsd server --disable-tls --config dev/kvsd_config.yaml --username {{kvsd_user}}
# Run api
run-api:
cd syndapi; cargo run -- \
--kvsd-host 127.0.0.1 --kvsd-port 7379 --kvsd-username {{kvsd_user}} --kvsd-password secret
# Run term
run-term:
cd syndterm; cargo run -- --log /tmp/syndterm.log