Files
mempalace--mempalace/examples/basic_mining.py
T
wehub-resource-sync c3749daf48
Tests / test-windows (push) Waiting to run
Tests / test-macos (push) Waiting to run
Tests / test-linux (3.13) (push) Failing after 0s
Tests / test-linux (3.11) (push) Failing after 1s
Tests / lint (push) Failing after 0s
Tests / test-linux (3.9) (push) Failing after 1s
Docker / build (push) Failing after 1s
Docker / build-gpu (push) Failing after 2s
chore: import upstream snapshot with attribution
2026-07-13 12:03:03 +08:00

13 lines
423 B
Python

#!/usr/bin/env python3
"""Example: mine a project folder into the palace."""
import sys
project_dir = sys.argv[1] if len(sys.argv) > 1 else "~/projects/my_app"
print("Step 1: Initialize rooms from folder structure")
print(f" mempalace init {project_dir}")
print("\nStep 2: Mine everything")
print(f" mempalace mine {project_dir}")
print("\nStep 3: Search")
print(" mempalace search 'why did we choose this approach'")