Commit 3de0732
feat: add product improvements — version, aliases, auto-slug, wt-cd, wt-open, wt-reopen, --json, init, env vars (#14)
Major new features and CLI ergonomics improvements:
- `wtf version` command (table-stakes for any CLI tool)
- Command aliases: new, pub, pr, up, clean, ls, st, cd, open, reopen
- Auto-detect SLUG from current worktree (no more typing slug every time)
- `wtf wt-cd SLUG` — print worktree path for shell composition
- `wtf wt-open SLUG` — open worktree in editor ($EDITOR/code/vim/nano)
- `wtf wt-reopen SLUG` — recreate worktree from existing remote branch
- `wtf init` — interactive config wizard for .worktreeflow.toml
- `--json` global flag for machine-readable output (doctor, wt-list, wt-status)
- `--open` flag on wt-new to open editor after creation
- Environment variable overrides: WTF_BASE_BRANCH, WTF_DEBUG, WTF_DRY_RUN, etc.
- Enhanced wt-list: last activity dates, stale worktree detection (30+ days), PR status
- Centralized `_require_gh()` for consistent gh CLI prerequisite checks
- Updated tutorial and quickstart with all new features
- 30 new tests (158 total), all passing with clean lint
https://claude.ai/code/session_01A1Z3oDtv65NzXVqYaSsn8G
Co-authored-by: Claude <noreply@anthropic.com>1 parent fd73bfe commit 3de0732
File tree
10 files changed
+1022
-106
lines changed- src/worktreeflow
- tests
10 files changed
+1022
-106
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
0 commit comments