.PHONY: build release install test test-e2e test-all clean run ui
all: build
build:
cargo build --features tui
release:
cargo build --release --features tui
install: release
@pkill -x kto 2>/dev/null || true
@sleep 0.2
cp target/release/kto ~/.cargo/bin/kto
@echo "Installed kto v$$(grep '^version' Cargo.toml | cut -d'"' -f2) to ~/.cargo/bin/kto"
test:
cargo test
test-e2e: build
python3 tests/e2e/run_suite.py
test-all: test test-e2e
clean:
cargo clean
run:
cargo run --features tui -- ui
ui:
cargo run --release --features tui -- ui