#!/usr/bin/env bash
# task-loop entry point. The skills call `vt todos ...`; put this on your PATH:
#   ln -s "$PWD/vt" ~/.local/bin/vt
set -euo pipefail
HERE="$(cd "$(dirname "$(readlink -f "$0" 2>/dev/null || echo "$0")")" && pwd)"
case "${1:-}" in
    todos) shift; exec python3 "$HERE/todos.py" "$@" ;;
    *)     echo "usage: vt todos [--view todo|triage|unscheduled|all] [--json] [--add TEXT ...]" >&2; exit 2 ;;
esac
