# Justfile for Dictation Service

# Show available commands
default:
    @just --list

# Install dependencies and setup read-aloud service
setup:
    ./scripts/setup-read-aloud.sh

# Run unit tests for read-aloud service
test:
    .venv/bin/python tests/test_read_aloud.py

# Check service status
status:
    systemctl --user status read-aloud.service

# View service logs (live follow)
logs:
    journalctl --user -u read-aloud.service -f

# Start the read-aloud service
start:
    systemctl --user start read-aloud.service

# Stop the read-aloud service
stop:
    systemctl --user stop read-aloud.service

# Restart the read-aloud service
restart:
    systemctl --user restart read-aloud.service

# Run all project tests (including existing ones)
test-all:
    cd tests && ./run_all_tests.sh

# Toggle dictation mode (Alt+D equivalent)
toggle-dictation:
    ./scripts/toggle-dictation.sh
