Usage: ttrek sync [DIRECTORY]

Clone https://github.com/jerily/ttrek-registry.git into ~/.local/ttrek-registry
by default, or into DIRECTORY (use . for the current directory). Requires git.
New clones use --depth 1 to download only the latest commit on main initially.
An existing clean main checkout is updated with git pull --ff-only; other
repositories, local changes and divergent history are preserved and rejected.

Registry commands prefer an explicit -registry option, then a saved project
registry, then a successfully synced ~/.local/ttrek-registry, then https://ttrek.sh.
Search always uses a registry website.
A sync-managed local registry that has not been synced for 24 hours prints a
reminder to run ttrek sync (or ttrek sync . for a custom checkout). A checkout
behind its last fetched origin/main also warns, even if its sync timestamp is
recent. These checks use local metadata; they do not fetch or contact the network.
Custom checkout paths and Git worktrees are supported. Private/unmanaged
registries are not told to use the public-registry sync command.
With a single selected local registry, absent packages do not fall back to the
website. Use repeated -registry options to select additional sources explicitly.
