#!/bin/sh

export HIRCINE_DEV=1

tmux new-session -ds hircine -n uvicorn -- '(cd instance/ && poetry run python -m hircine.app)'
tmux new-window -t hircine: -n lint     -- 'fd . -epy src/ tests/ | entr -c sh scripts/lint.sh'
tmux new-window -t hircine: -n docs     -- 'fd . -erst -epy docs/ | entr -c make docs'
tmux attach-session -t hircine