feat(cli): nerve init --from <git-url> — clone existing workspace #72
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
nerve init目前只能创建全新 workspace。但实际使用中,workspace(senses、workflows、nerve.yaml)是用户长期维护的,存在 git repo 里。每次重装或换机器都要手动恢复。需求
nerve init --from <git-url>git clone <url> ~/.uncaged-nerve(如果目标目录已存在且非空,报错退出)pnpm install(安装 nerve-daemon 等依赖)nerve start行为细节
--from和默认的 scaffold 模式互斥,不能同时指定~/.uncaged-nerve已存在且非空,提示用户先备份/删除nerve.yaml、package.json)是否存在,缺失则警告xiaoju/nerve-workspace),不做自动补全,要求完整 URL示例
不做