mirror of
https://github.com/harivansh-afk/veet-code.git
synced 2026-04-17 16:02:43 +00:00
install.sh
This commit is contained in:
parent
b6d225bc54
commit
db24649e1b
2 changed files with 55 additions and 6 deletions
22
README.md
22
README.md
|
|
@ -6,20 +6,30 @@ Built for people vim users who enjoy claude code, ghostty panes and TUIs
|
||||||
- Auto-run tests on file write
|
- Auto-run tests on file write
|
||||||
- Claude code slash command to generate problems, tests on demand
|
- Claude code slash command to generate problems, tests on demand
|
||||||
|
|
||||||
## Installation
|
## Install
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://raw.githubusercontent.com/harivansh-afk/veetcode/main/install.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
Then run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
veet
|
||||||
|
```
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Manual install</summary>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/harivansh-afk/veetcode.git
|
git clone https://github.com/harivansh-afk/veetcode.git
|
||||||
cd veetcode
|
cd veetcode
|
||||||
uv sync
|
uv sync
|
||||||
```
|
|
||||||
|
|
||||||
## Run
|
|
||||||
|
|
||||||
```bash
|
|
||||||
./veet
|
./veet
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## Workflow
|
## Workflow
|
||||||
|
|
||||||
1. `./veet` — opens problem list
|
1. `./veet` — opens problem list
|
||||||
|
|
|
||||||
39
install.sh
Executable file
39
install.sh
Executable file
|
|
@ -0,0 +1,39 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPO="harivansh-afk/veetcode"
|
||||||
|
INSTALL_DIR="$HOME/.veetcode"
|
||||||
|
|
||||||
|
echo "Installing veetcode..."
|
||||||
|
|
||||||
|
# Check for uv
|
||||||
|
if ! command -v uv &> /dev/null; then
|
||||||
|
echo "Installing uv..."
|
||||||
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone or update
|
||||||
|
if [ -d "$INSTALL_DIR" ]; then
|
||||||
|
echo "Updating existing installation..."
|
||||||
|
cd "$INSTALL_DIR" && git pull
|
||||||
|
else
|
||||||
|
echo "Cloning repository..."
|
||||||
|
git clone "https://github.com/$REPO.git" "$INSTALL_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$INSTALL_DIR"
|
||||||
|
uv sync
|
||||||
|
|
||||||
|
# Create symlink
|
||||||
|
mkdir -p "$HOME/.local/bin"
|
||||||
|
ln -sf "$INSTALL_DIR/veet" "$HOME/.local/bin/veet"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "✓ veetcode installed!"
|
||||||
|
echo ""
|
||||||
|
echo "Run: veet"
|
||||||
|
echo ""
|
||||||
|
echo "Make sure ~/.local/bin is in your PATH:"
|
||||||
|
echo ' export PATH="$HOME/.local/bin:$PATH"'
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue