-
Notifications
You must be signed in to change notification settings - Fork 7
/
Taskfile.yml
83 lines (66 loc) · 1.92 KB
/
Taskfile.yml
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
version: "3"
tasks:
init:
- echo "init"
build:
cmds:
- cargo build
run:cli:
cmds:
- cargo run --bin rs-cli -- -n "Henry"
#
# parse env vars:
#
run:eth:scanner:
cmds:
- echo "run:eth scanner"
- cargo run --bin rs-eth-scanner -- scan ${INFURA_RPC_URL} ${ETH_ADDRESS} ${TX_TYPE} ${TX_COUNT}
run:binance:
cmds:
# RUST_LOG=trace ; RUST_LOG=debug; # 查看不同级别的日志(看 debug 日志, 改如下参数)
- RUST_LOG=info cargo run --bin rs-binance -- auth ${BINANCE_API_KEY} ${BINANCE_SECRET_KEY}
run:binance:async:
cmds:
- RUST_LOG=info cargo run --bin rs-binance-async -- market empty
run:binance:async:general:
cmds:
- RUST_LOG=info cargo run --bin rs-binance-async -- general empty
run:binance:async:auth:
cmds:
- RUST_LOG=info cargo run --bin rs-binance-async -- auth ${BINANCE_API_KEY} ${BINANCE_SECRET_KEY}
run:binance:wallet:
cmds:
- RUST_LOG=info cargo run --bin rs-binance-async -- wallet deposit ${BINANCE_API_KEY} ${BINANCE_SECRET_KEY}
run:binance:market:
cmds:
- RUST_LOG=info cargo run --bin rs-binance-async -- market empty
run:keytool:
cmds:
- echo "run:keytool"
# - cargo run --bin rs-keytool -- query -h
- cargo run --bin rs-keytool -- -h
run:tui:
cmds:
- cargo run --bin rs-tui -- market empty
run:discord:
cmds:
- echo "run discord bot"
- cargo run --bin discord-bot -- -h
docs:
cmds:
- open https://binance-docs.github.io/apidocs/spot/cn/#185368440e
release:
cmds:
- echo "release"
- cargo build --release
- cd ../..; open target/release/
install:
cmds:
- echo "install the local build binary to ~/.cargo/bin."
- cargo install --path . --force --verbose
- cargo install --list
- cd ../..; open target/release/
clean:
cmds:
- echo "clean"
- cargo clean