Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Refactor: Update post-start command snapshot tests

Maximilian Roos00782301e8cd
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap
index 4468b203c..30887d49e 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpUuZGl5
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0byrQU
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -27,17 +26,7 @@ exit_code: 0
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
+πŸ”„ Executing (post-create):
  echo 'Setup done' > setup.txt
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'Setup done' > setup.txt
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  sleep 0.5 && echo 'Server running' > server.txt
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: sleep 0.5 && echo 'Server running' > server.txt
+πŸ”„ Starting (background): sleep 0.5 && echo 'Server running' > server.txt
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap.new
deleted file mode 100644
index bc380fa8a..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap.new
+++ /dev/null
@@ -1,34 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpRLy6fk
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Executing (post-create):
-  echo 'Setup done' > setup.txt
-πŸ”„ Starting (background): sleep 0.5 && echo 'Server running' > server.txt
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap
index 5c1c55545..8cbe33d2d 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap
@@ -14,8 +14,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmptZb4Ps
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpd9Zkby
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -27,10 +26,5 @@ exit_code: 0
Path: [REPO]/../test-repo.feature
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  echo 'Background task' > background.txt
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'Background task' > background.txt
+πŸ”„ Starting (background): echo 'Background task' > background.txt
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap.new
deleted file mode 100644
index ea0dfe4d0..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap.new
+++ /dev/null
@@ -1,32 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- - "--execute"
- - "echo 'Execute flag' > execute.txt"
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp9eIcJS
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
------ stderr -----
-πŸ”„ Starting (background): echo 'Background task' > background.txt
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap
index 2d56c21e9..df2fd6636 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpF1umrW
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpd1DcV0
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -27,10 +26,6 @@ exit_code: 0
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
+πŸ”„ Executing (post-create):
  exit 1
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: exit 1
+🟑 Command cmd failed: Command failed with exit code: exit status: 1
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap.new
deleted file mode 100644
index 692e46cc0..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap.new
+++ /dev/null
@@ -1,33 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpR8gOKN
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Executing (post-create):
-  exit 1
-🟑 Command cmd failed: Command failed with exit code: exit status: 1
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap
index 42ca631e8..5942a29b2 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpU051MH
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpWlXFZf
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -21,23 +20,15 @@ info:
success: true
exit_code: 0
----- stdout -----
+First
+Second
βœ… Created new worktree for feature
Path: [REPO]/../test-repo.feature
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
+πŸ”„ Executing (post-create):
  echo 'First'
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'First'
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
+πŸ”„ Executing (post-create):
  echo 'Second'
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'Second'
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap.new
deleted file mode 100644
index f720e2a50..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap.new
+++ /dev/null
@@ -1,36 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpASFetv
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-First
-Second
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Executing (post-create):
-  echo 'First'
-πŸ”„ Executing (post-create):
-  echo 'Second'
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap
index f8a1983ca..1c32b946e 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpYddzNM
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0nKmXP
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -21,23 +20,15 @@ info:
success: true
exit_code: 0
----- stdout -----
+Installing deps
+Running setup
βœ… Created new worktree for feature
Path: [REPO]/../test-repo.feature
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
+πŸ”„ Executing (post-create):
  echo 'Installing deps'
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'Installing deps'
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
+πŸ”„ Executing (post-create):
  echo 'Running setup'
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'Running setup'
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap.new
deleted file mode 100644
index 4faf95123..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap.new
+++ /dev/null
@@ -1,36 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpvnJ7sq
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-Installing deps
-Running setup
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Executing (post-create):
-  echo 'Installing deps'
-πŸ”„ Executing (post-create):
-  echo 'Running setup'
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap
index 80bbd1517..aa15f1950 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpYozSFb
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpGrmjMp
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -21,16 +20,12 @@ info:
success: true
exit_code: 0
----- stdout -----
+Setup complete
βœ… Created new worktree for feature
Path: [REPO]/../test-repo.feature
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
+πŸ”„ Executing (post-create):
  echo 'Setup complete'
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'Setup complete'
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap.new
deleted file mode 100644
index f77746acf..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap.new
+++ /dev/null
@@ -1,33 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpfM9rik
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-Setup complete
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Executing (post-create):
-  echo 'Setup complete'
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap
index a98593c99..3b86628cc 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpJdNF1s
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpbxqPsC
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -27,14 +26,7 @@ exit_code: 0
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  echo 'line1
-  line2
-  line3' | grep line2 > filtered.txt
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'line1
+πŸ”„ Starting (background): echo 'line1
line2
line3' | grep line2 > filtered.txt
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap.new
deleted file mode 100644
index 2f006b6c0..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap.new
+++ /dev/null
@@ -1,34 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpGAjZ5L
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Starting (background): echo 'line1
-line2
-line3' | grep line2 > filtered.txt
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap
index de2ec6530..8201fbbf8 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpuSHM2t
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpNQ38TV
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -27,10 +26,5 @@ exit_code: 0
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  echo 'unclosed quote
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'unclosed quote
+πŸ”„ Starting (background): echo 'unclosed quote
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap.new
deleted file mode 100644
index 6492944ec..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap.new
+++ /dev/null
@@ -1,32 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpd8ePiU
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Starting (background): echo 'unclosed quote
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap
index 829c5738d..e1cdfd489 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpU4gfUf
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpxEYJNM
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -27,10 +26,5 @@ exit_code: 0
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  echo 'stdout output' && echo 'stderr output' >&2
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'stdout output' && echo 'stderr output' >&2
+πŸ”„ Starting (background): echo 'stdout output' && echo 'stderr output' >&2
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap.new
deleted file mode 100644
index 5e66f3c18..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap.new
+++ /dev/null
@@ -1,32 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpMJJkmk
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Starting (background): echo 'stdout output' && echo 'stderr output' >&2
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap
index 22b3311a1..a04e84cb1 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpqq16nl
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmph3nKhK
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -27,17 +26,7 @@ exit_code: 0
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  echo 'Task 1 running' > task1.txt
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'Task 1 running' > task1.txt
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  echo 'Task 2 running' > task2.txt
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'Task 2 running' > task2.txt
+πŸ”„ Starting (background): echo 'Task 1 running' > task1.txt
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
+πŸ”„ Starting (background): echo 'Task 2 running' > task2.txt
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap.new
deleted file mode 100644
index 23dfa6cd0..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap.new
+++ /dev/null
@@ -1,34 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpIDDG3d
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Starting (background): echo 'Task 1 running' > task1.txt
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
-πŸ”„ Starting (background): echo 'Task 2 running' > task2.txt
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap
index a8b8f46ea..5fcb31bc5 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpYgkgiZ
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpLDLOWF
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -27,24 +26,9 @@ exit_code: 0
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  echo 'TASK1_OUTPUT'
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'TASK1_OUTPUT'
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  echo 'TASK2_OUTPUT'
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'TASK2_OUTPUT'
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  echo 'TASK3_OUTPUT'
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: echo 'TASK3_OUTPUT'
+πŸ”„ Starting (background): echo 'TASK1_OUTPUT'
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
+πŸ”„ Starting (background): echo 'TASK2_OUTPUT'
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
+πŸ”„ Starting (background): echo 'TASK3_OUTPUT'
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap.new
deleted file mode 100644
index fcca2cd92..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap.new
+++ /dev/null
@@ -1,36 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpLtMBOF
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Starting (background): echo 'TASK1_OUTPUT'
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
-πŸ”„ Starting (background): echo 'TASK2_OUTPUT'
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
-πŸ”„ Starting (background): echo 'TASK3_OUTPUT'
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap
index a919ee568..7174d9d96 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap
@@ -12,8 +12,7 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp04jzX0
+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp4vr96M
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1704067200"
@@ -27,10 +26,5 @@ exit_code: 0
To enable automatic cd, run: wt configure-shell
----- stderr -----
-
-🟑 Permission required to execute in worktree
-
-test-repo (test-repo) wants to execute:
-  sleep 1 && echo 'Background task done' > background.txt
-
-πŸ’‘ Allow and remember? [y/N] Skipping command: sleep 1 && echo 'Background task done' > background.txt
+πŸ”„ Starting (background): sleep 1 && echo 'Background task done' > background.txt
+ → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap.new b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap.new
deleted file mode 100644
index 08b25851f..000000000
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap.new
+++ /dev/null
@@ -1,32 +0,0 @@
----
-source: tests/integration_tests/post_start_commands.rs
-assertion_line: 30
-info:
- program: wt
- args:
- - switch
- - "--create"
- - feature
- env:
- CLICOLOR_FORCE: "1"
- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp9UJIuZ
- LANG: C
- LC_ALL: C
- SOURCE_DATE_EPOCH: "1704067200"
----
-success: true
-exit_code: 0
------ stdout -----
-βœ… Created new worktree for feature
- Path: [REPO]/../test-repo.feature
-
-To enable automatic cd, run: wt configure-shell
-
------ stderr -----
-πŸ”„ Starting (background): sleep 1 && echo 'Background task done' > background.txt
- → Logs: .git/wt-logs/post-start-[NAME]-[TIMESTAMP].log