all:
	@poetry run python main.py

install:
	@command -v poetry >/dev/null 2>&1 || { echo "poetry not found. Install from https://python-poetry.org/docs/#installation"; exit 1; }
	@poetry install --no-root
	@if [ ! -f .env ]; then \
		echo ".env not found — copying from .env.example"; \
		cp .env.example .env; \
		echo "Edit .env with your Nextcloud credentials before running."; \
	fi
	@poetry run python -c "import requests, inquirer" && echo "Install OK — run 'make' to start."

create_board:
	@poetry run python create_board.py

create_tags:
	@poetry run python create_tags.py

list_boards:
	@poetry run python list_boards.py

list_stacks:
	@poetry run python list_stacks.py

import:
	@poetry run python import.py

