all: build

build:
	cargo build

ci: test
	pre-commit run --all-files

test: test_cargo test_bats
	
test_cargo:
	cargo test

test_bats:
	./tests/test_cli.bats

# quick hacks
test_blog:
	RUST_LOG=debug cargo run -- --root ../spezifisch-pages ../spezifisch-pages/posts/**/*.md --disallow-onload

.PHONY: ci test test_cargo test_bats test_blog

