b31fdd023a
Product / UI / CLI / docs rebrand. Internal package, repo, and on-disk dir names stay 'cloud_sync' / 'cloud-sync' / '.cloud-sync/' to avoid breaking existing installs; a future commit can do the file-system rename when the cost is worth paying. User-facing changes: CLI prog name: cloud-sync -> instance-sync CLI description: cloud-svc URL -> Timemachine Network endpoint Dialog title: CLOUD SYNC -> INSTANCE SYNC Dialog title: CLOUD CONFLICT -> INSTANCE CONFLICT Dialog title: CONNECT CLOUD SAVE -> CONNECT TO THE NETWORK Card label: Cloud Save -> Remote Save Skip button: Skip cloud sync -> Skip instance sync Body copy: 'the cloud' -> 'the Timemachine Network' Window titles: Cloud sync — ... -> Instance sync — ... Log prefix: cloud-sync: -> instance-sync: Error prose: 'cloud-sync token' -> 'instance-sync token' Backend changes: restic --host tag: cloud-sync -> instance-sync State.host_tag dflt: cloud-sync -> instance-sync (Existing snapshots with the old tag still pull fine; we use 'latest'.) Drop tkinter fallback: ui.py now offers Qt OR Headless. tkinter is unnecessary given we already maintain Qt + headless; one less code path to keep styled, smaller pyz. make_progress() picks Qt first, falls through to HeadlessProgress on ImportError with a stderr hint to 'pip install PySide6'. README: rebrand title + prose; note repo/dir rename deferred; call out the PySide6 install step. Conflict/login dialogs are now Qt-only; without Qt, conflict aborts (defensive) and login tells the user to paste the token manually. 52 tests green; no test-file label changes needed since they only exercise internal APIs.
19 lines
655 B
Python
19 lines
655 B
Python
"""instance-sync — per-user Minecraft instance sync via the Timemachine Network.
|
|
|
|
Public API for in-process callers (e.g. frazclient):
|
|
|
|
import cloud_sync
|
|
cloud_sync.pull(url="https://cloud.tm.center", pack_folder=Path("/instance"))
|
|
cloud_sync.push(url="https://cloud.tm.center", pack_folder=Path("/instance"))
|
|
|
|
Note: the Python package name stays ``cloud_sync`` for now to keep
|
|
existing imports working; only the public feature name + UI/CLI prose
|
|
have been rebranded to "instance sync" / "Timemachine Network".
|
|
"""
|
|
|
|
from .cli import Args
|
|
from .sync import pull, push
|
|
|
|
__version__ = "0.1.0"
|
|
__all__ = ["Args", "pull", "push", "__version__"]
|