-
Notifications
You must be signed in to change notification settings - Fork 577
/
risedev
executable file
·29 lines (23 loc) · 977 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
24
25
26
27
28
29
#!/usr/bin/env bash
if [ -z "$(which cargo-binstall)" ] && [ -z "$RISINGWAVE_CI" ]; 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@~0.37 --locked
fi
touch risedev-components.user.env
# RISEDEV_CMD might be set if it is installed to the PATH.
# Otherwise, we set it to the current script name.
if [ -z "$RISEDEV_CMD" ]; then
export RISEDEV_CMD="$0"
fi
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 "$@"