Initial commit: AI Shell v0.1.0
- AI-powered shell command generator using DeepSeek V3 - Support for natural language to shell command conversion - Secure configuration management with .env files - Package structure with uv tool installation support - Chinese and English language support - Configuration validation and error handling
This commit is contained in:
64
Makefile
Normal file
64
Makefile
Normal file
@ -0,0 +1,64 @@
|
||||
.PHONY: help install upgrade uninstall build clean test bump-patch bump-minor bump-major
|
||||
|
||||
help:
|
||||
@echo "AI Shell Development Commands:"
|
||||
@echo ""
|
||||
@echo " install - Install AI Shell globally using uv tool"
|
||||
@echo " upgrade - Upgrade existing AI Shell installation"
|
||||
@echo " uninstall - Uninstall AI Shell"
|
||||
@echo " build - Build the package"
|
||||
@echo " clean - Clean build artifacts"
|
||||
@echo " test - Test the installation"
|
||||
@echo " bump-patch - Bump patch version (0.1.0 -> 0.1.1)"
|
||||
@echo " bump-minor - Bump minor version (0.1.0 -> 0.2.0)"
|
||||
@echo " bump-major - Bump major version (0.1.0 -> 1.0.0)"
|
||||
|
||||
install:
|
||||
@echo "🚀 Installing AI Shell..."
|
||||
@uv build
|
||||
@uv tool install . --force
|
||||
@echo "✅ AI Shell installed successfully!"
|
||||
|
||||
upgrade: bump-patch install
|
||||
@echo "✅ AI Shell upgraded successfully!"
|
||||
|
||||
quick-upgrade:
|
||||
@echo "🔄 Quick upgrade (patch version)..."
|
||||
@./quick_upgrade.sh
|
||||
|
||||
uninstall:
|
||||
@echo "🗑️ Uninstalling AI Shell..."
|
||||
@uv tool uninstall ai-shell || true
|
||||
@echo "✅ AI Shell uninstalled"
|
||||
|
||||
build:
|
||||
@echo "📦 Building package..."
|
||||
@uv build
|
||||
|
||||
clean:
|
||||
@echo "🧹 Cleaning build artifacts..."
|
||||
@rm -rf dist/
|
||||
@rm -rf build/
|
||||
@rm -rf *.egg-info/
|
||||
@echo "✅ Clean complete"
|
||||
|
||||
test:
|
||||
@echo "🧪 Testing AI Shell installation..."
|
||||
@ai --version
|
||||
@ai --config
|
||||
@echo "✅ Test complete"
|
||||
|
||||
bump-patch:
|
||||
@echo "📈 Bumping patch version..."
|
||||
@python scripts/bump_version.py patch
|
||||
@echo "✅ Version bumped"
|
||||
|
||||
bump-minor:
|
||||
@echo "📈 Bumping minor version..."
|
||||
@python scripts/bump_version.py minor
|
||||
@echo "✅ Version bumped"
|
||||
|
||||
bump-major:
|
||||
@echo "📈 Bumping major version..."
|
||||
@python scripts/bump_version.py major
|
||||
@echo "✅ Version bumped"
|
Reference in New Issue
Block a user