wt-manager 1.7.1 → 1.7.2
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.
- package/README.md +13 -0
- package/dist/cli.js +18893 -18771
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,12 +64,25 @@ wt new feature/new-feature
|
|
|
64
64
|
|
|
65
65
|
# Create worktree from specific base branch
|
|
66
66
|
wt new feature/new-feature develop
|
|
67
|
+
|
|
68
|
+
# CI/CD: get just the path
|
|
69
|
+
wt new feature/new-feature -q
|
|
70
|
+
|
|
71
|
+
# Composable with cd
|
|
72
|
+
cd $(wt new feature/new-feature -q)
|
|
73
|
+
|
|
74
|
+
# Interactive but skip the postCreate command
|
|
75
|
+
wt new feature/new-feature --no-post-create
|
|
67
76
|
```
|
|
68
77
|
|
|
69
78
|
**Arguments:**
|
|
70
79
|
- `<branch-name>` - Name of the new branch to create
|
|
71
80
|
- `[base-branch]` - Base branch to create from (default: auto-detected from origin/HEAD)
|
|
72
81
|
|
|
82
|
+
**Options:**
|
|
83
|
+
- `-q, --quiet` - Print only the worktree path (implies `--no-post-create`, skips clipboard)
|
|
84
|
+
- `--no-post-create` - Skip the `postCreate` command from `.wtrc.js`
|
|
85
|
+
|
|
73
86
|
**Behavior:**
|
|
74
87
|
- Automatically creates the worktree directory structure
|
|
75
88
|
- Converts slashes in branch names to dashes for directory names (e.g., `feature/foo` → `feature-foo`)
|