fix config
This commit is contained in:
18
Makefile
18
Makefile
@ -2,7 +2,7 @@
|
||||
|
||||
all: build
|
||||
|
||||
# Initial setup (creates venv in ~/.config/ai-shell)
|
||||
# Initial setup (creates venv in ~/.config/syui/ai/shell)
|
||||
setup:
|
||||
@./scripts/setup.sh
|
||||
|
||||
@ -12,29 +12,29 @@ build:
|
||||
|
||||
# Run MCP server (after setup)
|
||||
run-server:
|
||||
@if [ ! -d "$$HOME/.config/ai-shell/venv" ]; then \
|
||||
@if [ ! -d "$$HOME/.config/syui/ai/shell/venv" ]; then \
|
||||
echo "Please run 'make setup' first"; \
|
||||
exit 1; \
|
||||
fi
|
||||
@$$HOME/.config/ai-shell/bin/mcp-server
|
||||
@$$HOME/.config/syui/ai/shell/bin/mcp-server
|
||||
|
||||
# Run CLI in development mode
|
||||
run-cli:
|
||||
cargo run
|
||||
|
||||
# Run ai-shell (after setup)
|
||||
# Run aishell (after setup)
|
||||
run:
|
||||
@if [ ! -d "$$HOME/.config/ai-shell/venv" ]; then \
|
||||
@if [ ! -d "$$HOME/.config/syui/ai/shell/venv" ]; then \
|
||||
echo "Please run 'make setup' first"; \
|
||||
exit 1; \
|
||||
fi
|
||||
@$$HOME/.config/ai-shell/bin/ai-shell
|
||||
@$$HOME/.config/syui/ai/shell/bin/aishell
|
||||
|
||||
# Run tests
|
||||
test:
|
||||
cargo test
|
||||
@if [ -d "$$HOME/.config/ai-shell/venv" ]; then \
|
||||
source $$HOME/.config/ai-shell/venv/bin/activate && python -m pytest tests/; \
|
||||
@if [ -d "$$HOME/.config/syui/ai/shell/venv" ]; then \
|
||||
source $$HOME/.config/syui/ai/shell/venv/bin/activate && python -m pytest tests/; \
|
||||
fi
|
||||
|
||||
# Clean build artifacts
|
||||
@ -45,5 +45,5 @@ clean:
|
||||
|
||||
# Remove all installed files (complete uninstall)
|
||||
uninstall:
|
||||
rm -rf $$HOME/.config/ai-shell
|
||||
rm -rf $$HOME/.config/syui/ai/shell
|
||||
@echo "ai.shell has been uninstalled"
|
Reference in New Issue
Block a user