Last active
July 11, 2025 18:06
-
-
Save tarruda/7452a1251a277434c613acd0a6b9e753 to your computer and use it in GitHub Desktop.
Install planar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# Check if uv is installed | |
if ! command -v uv &> /dev/null; then | |
echo "uv is not installed. Installing..." | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
echo "uv installed successfully." | |
. "$HOME/.local/bin/env" | |
fi | |
echo "Installing planar..." | |
# Install planar | |
uv tool install planar --extra-index-url=https://coplane.github.io/planar/simple/ | |
if [ $? -eq 0 ]; then | |
echo "Planar installed successfully. Restart your shell and run \"planar scaffold myapp\" to get started!" | |
else | |
echo "Error: Failed to install planar." | |
exit 1 | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment