commitgenius 0.3.0

An AI-powered CLI tool that generates conventional commit messages using local LLMs via Ollama
#!/bin/sh
set -e

# Install Rust if not installed
if ! command -v cargo >/dev/null 2>&1; then
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
    source $HOME/.cargo/env
fi

# Install commitgenius via cargo
cargo install commitgenius

# Create symlink
ln -sf $HOME/.cargo/bin/commitgenius /usr/local/bin/commitgenius

# Set permissions
chmod +x /usr/local/bin/commitgenius

exit 0