mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-27 13:01:13 +00:00

Fixes https://github.com/tui-rs-revival/ratatui/issues/214 - add cargo-husky to dev-deps - create hook - update `CONTRIBUTING.md` - ensure that the hook is not installed in CI
17 lines
536 B
Bash
Executable File
17 lines
536 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if !(command cargo-make >/dev/null 2>&1); then # Check if cargo-make is installed
|
|
echo Attempting to run cargo-make as part of the pre-push hook but it\'s not installed.
|
|
echo Please install it by running the following command:
|
|
echo
|
|
echo " cargo install --force cargo-make"
|
|
echo
|
|
echo If you don\'t want to run cargo-make as part of the pre-push hook, you can run
|
|
echo the following command instead of git push:
|
|
echo
|
|
echo " git push --no-verify"
|
|
exit 1
|
|
fi
|
|
|
|
cargo make ci
|