-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
65 lines (47 loc) · 1.45 KB
/
justfile
File metadata and controls
65 lines (47 loc) · 1.45 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
build:
cargo build --bins
dist-build:
dist build --target x86_64-apple-darwin
release:
RUSTFLAGS="-C target-cpu=native" cargo build --bins --release
ls -ls target/release/dotenvx
ls -ls target/release/mkey
cp target/release/dotenvx ~/bin/dotenvx
cp target/release/dotenvx ~/.cargo/bin/dotenvx
cp target/release/mkey ~/bin/mkey
# use alpine/git container to push the repo
push:
docker run --rm -it -v "$(pwd)":/repo -v "$HOME/.ssh":/root/.ssh:ro -w /repo alpine/git push origin main --tags
cli-help:
cargo run --bin dotenvx -- --help
# generate a new keypair and print it to stdout
init-stdout:
cargo run --bin dotenvx -- init --stdout
encrypt:
cargo run --bin dotenvx -- encrypt
decrypt:
cargo run --bin dotenvx -- decrypt --stdout
decrypt-export:
cargo run --bin dotenvx -- decrypt --export
keypair:
cargo run --bin dotenvx -- keypair -f .env.example
list-env-files:
cargo run --bin dotenvx -- ls
get-hello:
cargo run --bin dotenvx -- get HELLO
get-all:
cargo run --bin dotenvx -- get
set-nick:
cargo run --bin dotenvx -- set nick "Jackie Chan"
set-from-stdin:
cargo run --bin dotenvx -- set nick -
rotate-example:
cargo run --bin dotenvx -- rotate -f .env.example
zsh-completion:
cargo run --bin dotenvx -- completion --shell zsh
demo-sh: build
./target/debug/dotenvx run -- ./demo.sh
links: build
mkdir -p bin
rm -rf bin/*
ln -s $PWD/target/debug/dotenvx ./bin/python3