ever-brain / brain /commands /detach.py
AlexKurian's picture
Final Clean Deploy
a02272f
Raw
History Blame Contribute Delete
504 Bytes
"""brain detach — Remove the workspace runtime connection."""
import shutil
import typer
from brain.paths import get_workspace_dir
from brain.utils.display import error, success
def detach() -> None:
"""Remove the .brain/ workspace runtime. Does NOT delete project memory."""
workspace = get_workspace_dir()
if not workspace.exists():
error("No workspace runtime found.")
raise typer.Exit(code=1)
shutil.rmtree(workspace)
success("Workspace runtime removed.")