-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (26 loc) · 770 Bytes
/
justfile
File metadata and controls
31 lines (26 loc) · 770 Bytes
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
password = 'target/password'
sites = 'target/novault.sites'
lock = 'target/novault.lock'
secret = 'target/novault.secret'
# run with the given flags
run CMD="":
@mkdir -p target
@echo "shakeitoff" > {{password}}
cargo build --release
cat {{password}} | target/release/novault \
--stdin --stdout --sites {{sites}} --lock {{lock}} --secret {{secret}} \
{{CMD}}
@echo "-------- CONFIG --------"
@cat {{sites}} || echo "no sites file found"
@echo "-------- SECRET --------"
@cat {{secret}}
@echo "------------------------"
run-kill CMD="":
cargo build --release
cat {{password}} | target/release/novault \
--stdin --sites {{sites}} --lock {{lock}} --secret {{secret}} \
{{CMD}}
nix-build:
sudo nix-build -A novault_0_4_0
test:
cargo test --release