slopcannon 0.1.0

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 (3) hide show
  1. package/README.md +44 -0
  2. package/dist/cli.js +1976 -0
  3. package/package.json +30 -0
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # slopcannon
2
+
3
+ <p align="center">
4
+ <img src="images/hero.png" width="512" />
5
+ </p>
6
+
7
+ Create a git worktree. Launch Claude Code. Ship slop.
8
+
9
+ ## What it does
10
+
11
+ ```
12
+ git worktree add -b <branch> ../repo-branch origin/main
13
+ claude --dangerously-skip-permissions
14
+ ```
15
+
16
+ That's it. Run it in any git repo.
17
+
18
+ ## Quick start
19
+
20
+ ```
21
+ bunx slopcannon
22
+ ```
23
+
24
+ ## Shell function (recommended)
25
+
26
+ Add to `~/.zshrc` so your shell cds into the worktree:
27
+
28
+ ```bash
29
+ slopcannon() {
30
+ local tmpfile=$(mktemp /tmp/slopcannon.XXXXXX)
31
+ bunx slopcannon --path-file "$tmpfile"
32
+ local p=$(cat "$tmpfile" 2>/dev/null)
33
+ rm -f "$tmpfile"
34
+ if [[ -n "$p" ]] && [[ -d "$p" ]]; then
35
+ cd "$p" && claude --dangerously-skip-permissions
36
+ fi
37
+ }
38
+ ```
39
+
40
+ ## Requirements
41
+
42
+ - [bun](https://bun.sh)
43
+ - [git](https://git-scm.com)
44
+ - [claude CLI](https://docs.anthropic.com/en/docs/claude-code)