code-squad-cli 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1593,6 +1593,8 @@ async function createWorktreeCommand(workspaceRoot, args) {
1593
1593
  await copyWorktreeFiles(workspaceRoot, worktreePath);
1594
1594
  if (split) {
1595
1595
  await openNewTerminal(worktreePath);
1596
+ } else if (process.platform === "darwin") {
1597
+ await cdInCurrentTerminal(worktreePath);
1596
1598
  } else {
1597
1599
  console.log(worktreePath);
1598
1600
  }
@@ -1627,7 +1629,11 @@ async function quitWorktreeCommand() {
1627
1629
  await gitAdapter.removeWorktree(context.currentPath, context.mainRoot, true);
1628
1630
  await gitAdapter.deleteBranch(context.branch, context.mainRoot, true);
1629
1631
  console.log(chalk2.green(`\u2713 Deleted worktree and branch: ${context.branch}`));
1630
- console.log(context.mainRoot);
1632
+ if (process.platform === "darwin") {
1633
+ await cdInCurrentTerminal(context.mainRoot);
1634
+ } else {
1635
+ console.log(context.mainRoot);
1636
+ }
1631
1637
  } catch (error) {
1632
1638
  console.error(chalk2.red(`Failed to quit: ${error.message}`));
1633
1639
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-squad-cli",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "csq": "./dist/index.js"