#!/bin/bash # ============================================================================ # Tag the photo album, in a browser. # # ./tag.sh --untagged # only items with no tags yet # ./tag.sh --import ~/photos --untagged # import that folder first # ./tag.sh --import ~/photos --dry-run # the report, changing nothing # # Sets up .venv on first run, so this works on a clone with nothing installed. # ============================================================================ set -euo pipefail REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" readonly REPO_ROOT # shellcheck source=scripts/ensure_venv.sh source "${REPO_ROOT}/scripts/ensure_venv.sh" main() { ensure_venv "$REPO_ROOT" exec "${REPO_ROOT}/.venv/bin/python" "${REPO_ROOT}/tool/tagger.py" "$@" } main "$@"