fix: install.sh clone llm-functions automatiquement
This commit is contained in:
10
README.md
10
README.md
@@ -49,18 +49,14 @@ Chaque développeur lance `install.sh` une fois.
|
|||||||
git clone https://gargoton.petite-maison-orange.fr/eric/CrazyClaude.git .claude
|
git clone https://gargoton.petite-maison-orange.fr/eric/CrazyClaude.git .claude
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Cloner llm-functions
|
### 2. Lancer le script d'installation
|
||||||
|
|
||||||
```sh
|
|
||||||
git clone https://github.com/sigoden/llm-functions.git .claude/llm-functions
|
|
||||||
```
|
|
||||||
|
|
||||||
### 3. Lancer le script d'installation
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
bash .claude/install.sh
|
bash .claude/install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Le script clone automatiquement `llm-functions` si absent.
|
||||||
|
|
||||||
Le script :
|
Le script :
|
||||||
- crée le virtualenv Python
|
- crée le virtualenv Python
|
||||||
- construit les outils llm-functions
|
- construit les outils llm-functions
|
||||||
|
|||||||
12
install.sh
12
install.sh
@@ -25,14 +25,14 @@ python3 -m venv "$CLAUDE_DIR/venv"
|
|||||||
echo "OK"
|
echo "OK"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "=== Construction des outils llm-functions ==="
|
echo "=== Installation de llm-functions ==="
|
||||||
if [[ -f "$CLAUDE_DIR/llm-functions/Argcfile.sh" ]]; then
|
if [[ ! -f "$CLAUDE_DIR/llm-functions/Argcfile.sh" ]]; then
|
||||||
(cd "$CLAUDE_DIR/llm-functions" && argc build)
|
git clone https://github.com/sigoden/llm-functions.git "$CLAUDE_DIR/llm-functions"
|
||||||
echo "OK"
|
|
||||||
else
|
else
|
||||||
echo "WARN : llm-functions non trouvé — lance d'abord :"
|
echo "déjà présent"
|
||||||
echo " git subtree add --prefix .claude/llm-functions https://github.com/sigoden/llm-functions.git main --squash"
|
|
||||||
fi
|
fi
|
||||||
|
(cd "$CLAUDE_DIR/llm-functions" && argc build)
|
||||||
|
echo "OK"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "=== Mise à jour du .gitignore projet ==="
|
echo "=== Mise à jour du .gitignore projet ==="
|
||||||
|
|||||||
Reference in New Issue
Block a user