bascially ready to ship

This commit is contained in:
Joe Fleming
2026-03-07 17:13:36 -07:00
parent f3bb38aea1
commit 0941b228ef
4 changed files with 92 additions and 48 deletions

10
main.py
View File

@@ -1,8 +1,16 @@
#!/usr/bin/env python3
"""Session Mover TUI - Move OpenCode sessions between projects without SQL."""
import sys
from pathlib import Path
from app import SessionMoverApp
if __name__ == "__main__":
app = SessionMoverApp()
db_path = Path(sys.argv[1]) if len(sys.argv) > 1 else Path("opencode.db")
if not db_path.exists():
print(f"Error: database file not found: {db_path}", file=sys.stderr)
sys.exit(1)
app = SessionMoverApp(str(db_path))
app.run()