run: test
    cargo run -- run

update:
    cargo upgrade; cargo update;

docker-build:
    docker build -t nledford/hitomi:latest .

docker-run: docker-build
    docker run -e TZ="America/New_York" -e CONFIG_DIR="/config" -e PROFILES_DIRECTORY="/profiles" -it -v "./data/profiles:/profiles" -v "./data/config:/config" --rm --name hitomi nledford/hitomi:latest run

clippy:
    cargo clippy -- -Dwarnings

format:
    cargo fmt --all

build: format clippy
    cargo build

test: build
    cargo nextest run

run-loop $RUST_BACKTRACE="full": test
    cargo run -- run -l

install: build test
    cargo install --path .