forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworktrees.json
More file actions
32 lines (32 loc) · 1.73 KB
/
Copy pathworktrees.json
File metadata and controls
32 lines (32 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"_comment": "Worktree setup configuration for Omi parallel agents",
"_comment2": "See https://cursor.com/docs/configuration/worktrees for documentation.",
"_comment3": "ROOT_WORKTREE_PATH points to the root worktree directory",
"setup-worktree": [
"# Use the repository-owned, linked-worktree-safe setup for hooks and the locked backend environment",
"make setup",
"",
"# Copy environment files from root worktree if they exist",
"if [ -f \"$ROOT_WORKTREE_PATH/.env\" ]; then cp \"$ROOT_WORKTREE_PATH/.env\" .env; fi",
"if [ -f \"$ROOT_WORKTREE_PATH/backend/.env\" ]; then cp \"$ROOT_WORKTREE_PATH/backend/.env\" backend/.env; fi",
"if [ -f \"$ROOT_WORKTREE_PATH/app/.dev.env\" ]; then cp \"$ROOT_WORKTREE_PATH/app/.dev.env\" app/.dev.env; fi"
],
"setup-worktree-unix": [
"# Unix/macOS specific setup commands",
"make setup",
"",
"# Copy environment files",
"if [ -f \"$ROOT_WORKTREE_PATH/.env\" ]; then cp \"$ROOT_WORKTREE_PATH/.env\" .env; fi",
"if [ -f \"$ROOT_WORKTREE_PATH/backend/.env\" ]; then cp \"$ROOT_WORKTREE_PATH/backend/.env\" backend/.env; fi",
"if [ -f \"$ROOT_WORKTREE_PATH/app/.dev.env\" ]; then cp \"$ROOT_WORKTREE_PATH/app/.dev.env\" app/.dev.env; fi"
],
"setup-worktree-windows": [
"# Windows specific setup commands (PowerShell)",
"make setup",
"",
"# Copy environment files",
"if (Test-Path \"$env:ROOT_WORKTREE_PATH\\.env\") { Copy-Item \"$env:ROOT_WORKTREE_PATH\\.env\" .env }",
"if (Test-Path \"$env:ROOT_WORKTREE_PATH\\backend\\.env\") { Copy-Item \"$env:ROOT_WORKTREE_PATH\\backend\\.env\" backend\\.env }",
"if (Test-Path \"$env:ROOT_WORKTREE_PATH\\app\\.dev.env\") { Copy-Item \"$env:ROOT_WORKTREE_PATH\\app\\.dev.env\" app\\.dev.env }"
]
}