Installation

Keep Silk Code isolated in ~/SilkCode/.venv while exposing one convenient command to your shell.

Requirements

Install or update Silk Code

if [ -d "$HOME/SilkCode/.git" ]; then
    git -C "$HOME/SilkCode" pull
else
    git clone https://github.com/RupertCloud/SilkCode.git "$HOME/SilkCode"
fi

cd "$HOME/SilkCode"
[ -d .venv ] || python3 -m venv .venv
.venv/bin/python -m pip install -e .
grep -q 'alias silkcode=' ~/.zshrc 2>/dev/null || \
    echo 'alias silkcode="$HOME/SilkCode/.venv/bin/silkcode"' >> ~/.zshrc
source ~/.zshrc
silkcode --help

What the installer does

You do not need to activate .venv to use Silk Code after the alias is loaded.

Verify

which silkcode
silkcode --help
silkcode models