forked from risingwavelabs/risingwave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrisedev
executable file
·23 lines (18 loc) · 815 Bytes
/
risedev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
if [ -z "$(which cargo-binstall)" ]; then
echo "Installing cargo-binstall..."
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
fi
if [ -z "$(which cargo-make)" ]; then
echo "Installing cargo-make..."
cargo binstall cargo-make --version "^0.36.10" --locked # >= 0.36.10, < 0.37.0
fi
touch risedev-components.user.env
if [ $# -eq 0 ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
cargo make --list-all-steps --hide-uninteresting
exit 0
fi
cargo make --allow-private configure-if-not-configured
# We marked many tasks as private, so we can have a more concise output when listing all tasks.
# But we allow private tasks to be executed.
cargo make --allow-private "$@"